Single Image Depth Map / Sharpness Map
Hello,
Is there a way using OpenCV to create a gray scale image of the Depth Map / Sharpness Level of an image?
I don't need the "Depth Map" to be accurate, just to set a different shade of gray to a different distances.
Equivalently, set a different gray level according to the sharpness of the area (Since Distance, Focus Distance and Depth of Field set the sharpness).
Any idea?
Thanks.
Where would the distance information come from, if you have a single image as input?
I don't need estimation of the distance (Namely, the distance in [Meter]), only that different distances are in different shades of gray. This could be done by estimating the "Sharpness". Since the focus is set to a certain distance anything in a different distance would have a different "Sharpness" (Blur) level according the Depth of Field.