Info

この質問は閉じられています。 編集または回答するには再度開いてください。

doubt in specific line

1 回表示 (過去 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