Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

doubt in specific line

4 Ansichten (letzte 30 Tage)
Rd
Rd am 23 Jul. 2020
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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');

Antworten (1)

Walter Roberson
Walter Roberson am 23 Jul. 2020
'replicate'
Input array values outside the bounds of the array are assumed to equal the nearest array border value.
(from doc imfilter )
  1 Kommentar
Rd
Rd am 23 Jul. 2020
I can't understand exactly...could you please briefly explain?

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by