Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.