Separating sharp portions from blurred portions in an image
How can I separate the sharp (in focus) portion of an image from the blurred (out of focus) portion of the same image?
It is not possible int the all situation.If your picture is in specific situation (maximum distance form camera & type of picture) you can compute it.
For compute sharpness in the whole image you can use this post.If you want compute regions of focus & out of focus convert the code to blockwise or adaptive method.
In the adaptive method,compute focus for each point with gradient of neighbors by gaussian distribution.In the finally separate result by threshold.
Asked: 2013-09-27 06:20:22 -0600
Seen: 1,146 times
Last updated: Sep 27 '13