How to loop on an image matrix in matlab

1 view (last 30 days)
Hi every one,
I would like to know how I can loop on an image matrix in matlab and apply some filters on it. Lets say as example I would like to make median filter manually on matlab and apply on an image.
I would like to know how to do this because there is some algorithms I would like to implement by my self which is not supported by matlab toolbox.
Thanks every one.

Accepted Answer

Image Analyst
Image Analyst on 4 May 2015
You can either do it yourself with multiple for loops, or write your function that takes in a window and call nlfilter(). See my attached demo.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!