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