Classes | |
class | RuntimeParameters |
Parameters that defines the behavior of the grab. More... | |
struct | CameraParameters |
Intrinsic parameters of a camera. More... | |
struct | CalibrationParameters |
Intrinsic and Extrinsic parameters of the camera (translation and rotation). More... | |
Enumerations | |
enum | DEPTH_MODE |
Lists available depth computation modes. More... | |
enum | SENSING_MODE |
Lists available depth sensing modes. More... | |
enum | MEASURE |
Lists retrievable measures. More... | |
enum | DEPTH_FORMAT |
Lists available file formats for saving depth maps. More... | |
enum | POINT_CLOUD_FORMAT |
Lists available file formats for saving point clouds. Stores the spatial coordinates (x,y,z) of each pixel and optionally its RGB color. More... | |
Functions | |
bool | saveDepthAs (Camera &zed, DEPTH_FORMAT format, String name, float factor=1.) |
Writes the current depth map into a file. More... | |
bool | saveDepthAs (Mat &depth, DEPTH_FORMAT format, String name, float factor=1.) |
Writes the current depth map into a file. More... | |
bool | savePointCloudAs (Camera &zed, POINT_CLOUD_FORMAT format, String name, bool with_color=false) |
Writes the current point cloud into a file. More... | |
bool | savePointCloudAs (Mat &cloud, POINT_CLOUD_FORMAT format, String name, bool with_color=false) |
Writes the current point cloud into a file. More... | |
String | toString (const DEPTH_MODE &depthMode) |
Converts the given enumerated value into readable text. More... | |
String | toString (const SENSING_MODE &sensingMode) |
Converts the given enumerated value into readable text. More... | |
String | toString (const MEASURE &measure) |
Converts the given enumerated value into readable text. More... | |
String | toString (const DEPTH_FORMAT &depth_frmt) |
Converts the given enumerated value into readable text. More... | |
String | toString (const POINT_CLOUD_FORMAT &pc_frmt) |
Converts the given enumerated value into readable text. More... | |
DEPTH_MODE | str2mode (String mode) |
Converts the given string into a DEPTH_MODE. More... | |
String | depthMode2str (DEPTH_MODE mode) |
Converts the given DEPTH_MODE into a string. More... | |
String | sensingMode2str (SENSING_MODE mode) |
Converts the given SENSING_MODE into a string. More... | |
enum DEPTH_MODE |
Lists available depth computation modes.
enum SENSING_MODE |
Lists available depth sensing modes.
enum MEASURE |
Lists retrievable measures.
Enumerator | |
---|---|
MEASURE_DISPARITY | Disparity map. Each pixel contains 1 float. sl::MAT_TYPE_32F_C1. |
MEASURE_DEPTH | Depth map. Each pixel contains 1 float. sl::MAT_TYPE_32F_C1. |
MEASURE_CONFIDENCE | Certainty/confidence of the depth map. Each pixel contains 1 float. sl::MAT_TYPE_32F_C1. |
MEASURE_XYZ | Point cloud. Each pixel contains 4 float (X, Y, Z, not used). sl::MAT_TYPE_32F_C4. |
MEASURE_XYZRGBA | Colored point cloud. Each pixel contains 4 float (X, Y, Z, color). The color need to be read as an usigned char[4] representing the RGBA color. sl::MAT_TYPE_32F_C4. |
MEASURE_XYZBGRA | Colored point cloud. Each pixel contains 4 float (X, Y, Z, color). The color need to be read as an usigned char[4] representing the BGRA color. sl::MAT_TYPE_32F_C4. |
MEASURE_XYZARGB | Colored point cloud. Each pixel contains 4 float (X, Y, Z, color). The color need to be read as an usigned char[4] representing the ARGB color. sl::MAT_TYPE_32F_C4. |
MEASURE_XYZABGR | Colored point cloud. Each pixel contains 4 float (X, Y, Z, color). The color need to be read as an usigned char[4] representing the ABGR color. sl::MAT_TYPE_32F_C4. |
MEASURE_NORMALS | Normals vector. Each pixel contains 4 float (X, Y, Z, 0). sl::MAT_TYPE_32F_C4. |
MEASURE_DISPARITY_RIGHT | Disparity map for right sensor. Each pixel contains 1 float. sl::MAT_TYPE_32F_C1. |
MEASURE_DEPTH_RIGHT | Depth map for right sensor. Each pixel contains 1 float. sl::MAT_TYPE_32F_C1. |
MEASURE_XYZ_RIGHT | Point cloud for right sensor. Each pixel contains 4 float (X, Y, Z, not used). sl::MAT_TYPE_32F_C4. |
MEASURE_XYZRGBA_RIGHT | Colored point cloud for right sensor. Each pixel contains 4 float (X, Y, Z, color). The color need to be read as an usigned char[4] representing the RGBA color. sl::MAT_TYPE_32F_C4. |
MEASURE_XYZBGRA_RIGHT | Colored point cloud for right sensor. Each pixel contains 4 float (X, Y, Z, color). The color need to be read as an usigned char[4] representing the BGRA color. sl::MAT_TYPE_32F_C4. |
MEASURE_XYZARGB_RIGHT | Colored point cloud for right sensor. Each pixel contains 4 float (X, Y, Z, color). The color need to be read as an usigned char[4] representing the ARGB color. sl::MAT_TYPE_32F_C4. |
MEASURE_XYZABGR_RIGHT | Colored point cloud for right sensor. Each pixel contains 4 float (X, Y, Z, color). The color need to be read as an usigned char[4] representing the ABGR color. sl::MAT_TYPE_32F_C4. |
MEASURE_NORMALS_RIGHT | Normals vector for right view. Each pixel contains 4 float (X, Y, Z, 0). sl::MAT_TYPE_32F_C4. |
MEASURE_LAST |
enum DEPTH_FORMAT |
Lists available file formats for saving depth maps.
enum POINT_CLOUD_FORMAT |
Lists available file formats for saving point clouds. Stores the spatial coordinates (x,y,z) of each pixel and optionally its RGB color.
bool sl::saveDepthAs | ( | Camera & | zed, |
DEPTH_FORMAT | format, | ||
String | name, | ||
float | factor = 1. |
||
) |
Writes the current depth map into a file.
zed | : the current camera object. |
format | : the depth file format you desired. |
name | : the name (path) in which the depth will be saved. |
factor | : only for PNG and PGM, apply a gain to the depth value. default : 1. The PNG format only stores integers between 0 and 65536, if you're saving a depth map in meters, values will be rounded to the nearest integer. Set factor to 0.001 to reduce this effect by converting to millimeters. Do not forget to scale (by 1./factor) the pixel value at reading to get the real depth. The occlusions are represented by 0. |
Referenced by Camera::isOpened().
bool sl::saveDepthAs | ( | Mat & | depth, |
DEPTH_FORMAT | format, | ||
String | name, | ||
float | factor = 1. |
||
) |
Writes the current depth map into a file.
depth | : the depth map to record (CPU 32F_C1 Mat) |
format | : the depth file format you desired. |
name | : the name (path) in which the depth will be saved. |
factor | : only for PNG and PGM, apply a gain to the depth value. default : 1. The PNG format only stores integers between 0 and 65536, if you're saving a depth map in meters, values will be rounded to the nearest integer. Set factor to 0.001 to reduce this effect by converting to millimeters. Do not forget to scale (by 1./factor) the pixel value at reading to get the real depth. The occlusions are represented by 0. |
bool sl::savePointCloudAs | ( | Camera & | zed, |
POINT_CLOUD_FORMAT | format, | ||
String | name, | ||
bool | with_color = false |
||
) |
Writes the current point cloud into a file.
zed | : the current camera object. |
format | : the point cloud file format you desired. |
name | : the name (path) in which the point cloud will be saved. |
with_color | : indicates if the color must be saved. default : false. |
Referenced by Camera::isOpened().
bool sl::savePointCloudAs | ( | Mat & | cloud, |
POINT_CLOUD_FORMAT | format, | ||
String | name, | ||
bool | with_color = false |
||
) |
Writes the current point cloud into a file.
cloud | : the point cloud to record (CPU 32F_C4 Mat) |
format | : the point cloud file format you desired. |
name | : the name (path) in which the point cloud will be saved. |
with_color | : indicates if the color must be saved. default : false. |
String sl::toString | ( | const DEPTH_MODE & | depthMode | ) |
Converts the given enumerated value into readable text.
String sl::toString | ( | const SENSING_MODE & | sensingMode | ) |
Converts the given enumerated value into readable text.
Converts the given enumerated value into readable text.
String sl::toString | ( | const DEPTH_FORMAT & | depth_frmt | ) |
Converts the given enumerated value into readable text.
String sl::toString | ( | const POINT_CLOUD_FORMAT & | pc_frmt | ) |
Converts the given enumerated value into readable text.
DEPTH_MODE sl::str2mode | ( | String | mode | ) |
Converts the given string into a DEPTH_MODE.
mode | : a specific depth |
String sl::depthMode2str | ( | DEPTH_MODE | mode | ) |
Converts the given DEPTH_MODE into a string.
mode | : a specific DEPTH_MODE |
String sl::sensingMode2str | ( | SENSING_MODE | mode | ) |
Converts the given SENSING_MODE into a string.
mode | : a specific SENSING_MODE |