How to loop on an image matrix in matlab

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

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)

Categories

Find more on Images in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!