Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

doubt in specific line

1 visualización (últimos 30 días)
Rd
Rd el 23 de Jul. de 2020
Cerrada: MATLAB Answer Bot el 20 de Ag. de 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');

Respuestas (1)

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

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by