Distance Map to Image: export a distance map as a grayscale image

Save a distance map as a grayscale depth image, with an optional gray level for the deepest points

2 min read
In the app
  • Distance MapsDistance Map to Image
  • Distance MapsDistance Map to Image Advanced

Distance Map to Image (Distance Maps › Distance Map to Image) saves the selected distance map as a grayscale image: a depth map you can use in documentation, image tools or engraving software. Its drop-down item Distance Map to Image Advanced does the same with one extra setting, Threshold, described below.

Distance Map to Image: Where to Find

Export a distance map as an image

  1. Select one Distance Map object in the Scene tree.
  2. Click Distance Map to Image. There is no panel: a Save window opens at once.
  3. Choose the file name, folder and format, and click Save.

Distance Map to Window: Image

The available formats are PNG, JPEG, TIFF and BMP.

Distance Map to Image: Formats

How depth becomes gray

The image has one pixel per map pixel: a 1,216 × 239 map gives a 1,216 × 239 image.

  • The smallest value of the map is white. In a map made with Mesh to Distance Map, that is the point nearest to the camera.
  • Larger values (deeper points) get darker gray, linearly; the largest value gets the darkest gray level, set by Threshold (with the basic button it is almost black).
  • Pixels without data, such as through-holes or the background, are black.

The image keeps only gray levels. It does not store the pixel size or the real depth values, so when you load it back with Image to Distance Map, set Pixel Size and Max Height yourself.

Distance Map to Image Advanced

Use Distance Map to Image Advanced when the deepest areas of the part must stay visibly different from the black "no data" pixels.

Distance Map to Image Advanced: Where to Find

  1. Select one Distance Map object.
  2. Open the drop-down arrow next to Distance Map to Image and choose Distance Map to Image Advanced. A panel opens.
  3. Set Threshold and click Export. The same Save window opens.

Distance Map to Image Advanced panel with Threshold 50% over a distance map of a part with engraved text

Parameter What it does Default / tip
Threshold Gray level of the largest map value (the deepest point), in percent of white (0–100%). Valid pixels are spread between this level and white. Pixels without data stay black at any value. 0.39% (1 of 255 gray levels), the same as the basic button

Threshold is not a cut-off: no depth values are removed. A higher value only compresses all depths into a lighter range, so the image has fewer gray levels for the same depth range. In the example below, the top image was saved with the basic button and the bottom one with Threshold 50%: the lowest area of the part (top right) changes from almost black to mid-gray, while the holes stay black in both.

Two images exported from the same distance map: with the default Threshold the deepest area is almost black, with Threshold 50% it is mid-gray; holes are black in both

Customize Consent Preferences

We use cookies and similar technologies, such as local storage. You will find detailed information about all of them under each consent category below.

To learn more about how Google processes personal information, visit: Google privacy policy

Always Active