3DiVi Face SDK  3.21.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Groups
face_sdk.modules.depth_map_raw.DepthMapRaw Class Reference

A depth map aligned with the original color image. More...

Public Member Functions

def __init__
 Height of the depth map. More...
 
def __repr__
 

Static Public Member Functions

def read_depth_map
 A function that loads a depth map from a file and converts it to a uint16 array.
 

Public Attributes

 depth_map_rows
 
 depth_map_cols
 
 depth_map_2_image_offset_x
 
 depth_map_2_image_offset_y
 
 depth_map_2_image_scale_x
 
 depth_map_2_image_scale_y
 
 horizontal_fov
 
 vertical_fov
 
 depth_data
 
 depth_unit_in_millimeters
 
 depth_data_stride_in_bytes
 

Detailed Description

A depth map aligned with the original color image.

Correspondence between the coordinates of the original image and depth map is as follows: let (x; y) be a point on the depth map, then a corresponding point on the original image is (depth_map_2_image_offset_x + depth_map_2_image_scale_x * x; depth_map_2_image_offset_y + depth_map_2_image_scale_y * y).