doubt in specific line
Infos
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Afficher commentaires plus anciens
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');
Réponses (1)
Walter Roberson
le 23 Juil 2020
0 votes
'replicate'
Input array values outside the bounds of the array are assumed to equal the nearest array border value.
(from doc imfilter )
1 commentaire
Rd
le 23 Juil 2020
Cette question est clôturée.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!