Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
How do you write a FUNTION-M file?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Please give me an example of a FUNCTION code whereby image is convert to greyscale and to binary scale and going through salt & pepper filtering. thank you:)
0 comentarios
Respuestas (1)
Wayne King
el 17 de Sept. de 2012
Editada: Wayne King
el 17 de Sept. de 2012
Your title is not an accurate description of your post. Your post is asking somebody to write specific code for you, not a general question about how to write a function.
If you have the Image Processing Toolbox, please look at imread.m, imnoise.m, and medfilt2.m.
There are examples there of filtering salt & pepper noise. medfilt2.m will handle various classes of input image.
3 comentarios
Jan
el 17 de Sept. de 2012
@Esther: Please read the "Getting Started" chapters of the documentations, which is displayed by tyoing "doc" in the command window. Creating and calling a function belong to the very basics and a forum cannot replace a deep study of the documentation.
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!