whats the concept behind 2 d median filtering of an image

1 visualización (últimos 30 días)
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran el 29 de Abr. de 2014
Respondida: Image Analyst el 29 de Abr. de 2014
my code is
v=[ 154 138 163
75 74 151
70 106 118]
my output is
t =[ 0 75 0
74 118 106
0 74 0]
whats the logic behind this?
  1 comentario
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran el 29 de Abr. de 2014
Editada: Sivakumaran Chandrasekaran el 29 de Abr. de 2014
the steps are arranging in ascending order. zero should be added to the edges. I cant understand the remaining positions

Iniciar sesión para comentar.

Respuestas (1)

Image Analyst
Image Analyst el 29 de Abr. de 2014
For example, when the window is centered over the right middle pixel (row 2, column3), the window sees
138 163 0
74 151 0
106 118 0
and the median value of those numbers is 106. Perhaps this will illustrate:
theWindow = [v(:,2), v(:,3), [0;0;0]]
rightMiddleElement = median(theWindow(:))
Is this not the logic you were expecting?

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by