Introduction: Editing in the Third Dimension
A photograph is a projection of a 3D world onto a 2D plane. When we edit, we often focus on color and luminance, neglecting the image’s inherent depth. This doesn’t just remove spatial cues—it can fundamentally ruin the camera’s original point of view and the feeling of space.
The goal of using a depth map is not just to create 3D-looking effects, but to respect and enhance the spatial relationships that make a photograph feel immersive. It’s about the feeling of light entering a space, of atmosphere receding into the distance, and of the viewer understanding their position relative to the scene.
A depth map is a grayscale image that estimates the relative distance of every pixel from the camera. This “luminosity map of distance” becomes a powerful tool for applying edits that reinforce, rather than flatten, the scene’s three-dimensionality.
The Artistic Application – It’s About Feeling
The technical steps serve an artistic goal: preserving and enhancing the photograph’s spatial integrity.
Combined they can establish the overall depth of the scene, then add a dramatic spotlight to create a focal point that guides the viewer through the space you’ve defined.
Conclusion
Using depth maps is not about gimmicky 3D effects. It is the key to responsible editing that honors the original scene’s spatial relationships. By using these methods—the dynamic control group for broad adjustments and the depth-masked spotlight for precise lighting—you move beyond correcting a flat image to actively sculpting the light and atmosphere within a three-dimensional space, preserving and enhancing the very feeling that made you press the shutter.
Note: the examples below are fairly simple only illustrating a small number of possible uses.


This first example is a straight forward relight, selecting depth by using a luminosity mask on the depthmap.


I am using a 16bit depth map instead of the common 8 bit as this allow a finer adjustment, especial in the far distance like the sky and the far end of the path. An 8bit map has poor granularity. To run the program and output the 16bit depthmaps on my windows desktop I modified DepthAnythingAC on github.
This next example adds motion blur to the depthmap allowing it to closely simulate sunlight illumination streaming through the tree branches from the right hand side.






Deblurring should not be confused with sharpening. Main cause of blur is out of focus or motion of the camera or the subject. Other causes could be weather such as rain or mist. A debur algorithm attempts to reverse engineer the blurred image. AI image enhancements can look good but it usually replaces blurred features in an image with made-up information, not a good thing if you are trying to read a license plate from a satellite image. In the case of my favorite chicken above notice the slight blemish at the bottom of the eye and the complicated structure around the base of the beak. Standard AI enhancements tend to smooth out these areas making them almost cartoonish (definitely not real-life). Algorithmic deblur image enhancements also have to make assumptions but the transformation is basically mathematic. Modern methods also use AI methods with the object to get a best fit algorithmically rather than nearest fit to an AI database of birds parts (I know an oversimplification). I used this model and only on the head.