How to alter an image so noise is reduced by using a threshold within a loop
Mostrar comentarios más antiguos
So if we want a for loop to go pixel by pixel in an image we have created or defined and change it IN RELATION to its neighbors, what should we do?
for example, if the pixel value (between 0 and 255) is <0, and if two or fewer of its neighbors are also <0, we would like to change the value to 0. Otherwise, we want to leave it as is.
1 comentario
Image Analyst
el 26 de Feb. de 2019
Editada: Image Analyst
el 26 de Feb. de 2019
It sounds like you have an Answer since you've accepted the one below (though I don't know how it solves your question), but if the pixel value is "between 0 and 255" then how can it ever be "<0"???
And why do you think you need a loop for this? And what would it loop over? Intensities? Pixel locations? What is your loop index - what does it represent: gray level or rows and columns?
Are you trying to describe the "sigma filter"
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Watermarking en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
