how to apply fiters to each patch in an image? matlab code to apply filters to each patch in an image...

1 view (last 30 days)
i have divided the image into patches...but i dont know how to apply different types of filters to each patch in an image...Pls send me the code to apply different types of filters to each patch in an image..

Answers (1)

Image Analyst
Image Analyst on 17 Nov 2013
Edited: Image Analyst on 17 Nov 2013
There are lots of built-in filters, as well as some you could think up yourself. For example, look up imfilter(), medfilt2(), conv2(), entropyfilt(), stdfilt(), etc. in the help. If you want to write your own custom filter, look up nlfilter().
I don't know what a "patch" is but maybe it's a weird shape. Even if it's not, you always have to consider what happens at the edge of the patch. If the filter overlaps the edge, do you consider the pixels off the patch to have the original gray levels, or a gray level of zero?
  5 Comments
Nethra
Nethra on 18 Nov 2013
The above shown is the patches of an image...i need to apply filter to each filter instead of applying to a whole image..

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!