Overview
Stay organized with collections
Save and categorize content based on your preferences.
This document describes how to efficiently store a depthmap inside common image containers, such as PNG and JPEG, while keeping the image containers compatible with existing image viewers. The depthmap is serialized and embedded inside an image container as described by the Adobe XMP standard.
A depthmap is defined as an image of values (integer or real) that represent distance from the view point, see Figure 1. The exact definition of depth can vary depending on the depth sensor. As an example, two common definitions are depth along the optical axis (typically the z-axis), and depth along the optic ray passing through each pixel.
Figure 1. An example color image (left) and a corresponding depthmap (right).
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-06-23 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-06-23 UTC."],[[["This document outlines a method for storing depthmaps within standard image formats like PNG and JPEG, ensuring compatibility with regular image viewers."],["The process involves serializing the depthmap data and embedding it into the image container using Adobe XMP metadata standards."],["Depthmaps are images representing distance from the viewpoint, with variations in depth definition based on the sensor used."]]],[]]