Ask Your Question
0

Separating sharp portions from blurred portions in an image

asked 2013-09-27 06:20:22 -0600

kabhat gravatar image

updated 2013-09-27 12:13:08 -0600

How can I separate the sharp (in focus) portion of an image from the blurred (out of focus) portion of the same image?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2013-09-27 06:36:46 -0600

edit flag offensive delete link more
1

answered 2013-09-27 06:55:24 -0600

updated 2013-09-27 07:03:21 -0600

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.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-09-27 06:20:22 -0600

Seen: 972 times

Last updated: Sep 27 '13