필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

doubt in specific line

조회 수: 4 (최근 30일)
Rd
Rd 2020년 7월 23일
마감: MATLAB Answer Bot 2021년 8월 20일
This is the input
mask_h=2;
mask_w=4;
mask = zeros(mask_h,mask_w);
mask(1:mask_h/2,:) = -1;
mask(mask_h/2 + 1:end,:) = 1;
kindly explain the following line. What replicate means and how it will work?
img_filt = imfilter(img, mask,'replicate');

답변 (1개)

Walter Roberson
Walter Roberson 2020년 7월 23일
'replicate'
Input array values outside the bounds of the array are assumed to equal the nearest array border value.
(from doc imfilter )
  댓글 수: 1
Rd
Rd 2020년 7월 23일
I can't understand exactly...could you please briefly explain?

이 질문은 마감되었습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by