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)
Show older comments
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..
0 Comments
Answers (1)
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
Image Analyst
on 18 Nov 2013
See the FAQ: http://matlab.wikia.com/wiki/FAQ#How_do_I_split_an_image_into_non-overlapping_blocks.3F for code on how to do this.
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!