A depth map is a greyscale picture of distance. Each pixel says how far away that part of the scene is: by the most common convention, white is near and black is far. Put a portrait through a depth model and you get a glowing figure in front of a dark background.
How a single photo gives depth
A depth camera measures distance directly. A monocular depth model guesses it from one ordinary photo, using the clues humans use: perspective, size, overlap, shading and focus. The result is relative depth: what is nearer and what is farther, not distances in metres.
What you can do with it
- Parallax or "2.5D" videos: move a camera slightly over the photo in After Effects or Blender, and near parts move more than far ones.
- Displacement: push a plane into 3D with the depth map for a quick relief.
- Depth of field: blur the background more where the map is darker.
- ControlNet and image generators: guide a new image to keep the same layout.
- Fog and lighting: add haze that grows with distance.
8-bit or 16-bit?
An 8-bit PNG has 256 grey levels, which can show stair-steps when used for displacement. A 16-bit PNG has 65,536 levels and keeps surfaces smooth.
Try it
Image to Depth Map creates a depth map from one photo with Depth Anything V2 in your browser, lets you invert or colour it, and exports 8-bit or 16-bit PNG. Your images are never uploaded.