OrbbecSDK2 2.0.2
OrbbecSDK2: New generation Software-Development-Kit for Orbbec 3D-Sensor devices
载入中...
搜索中...
未找到
函数
ob2camera.h 文件参考
#include "ob2types.h"

浏览源代码.

函数

uint32_t ob2_device_get_supported_camera_count (ob2_device_t device_handle, ob2_status_t *status)
 获取设备支持的相机个数 更多...
 
ob2_camera_type_t ob2_device_get_supported_camera_type (ob2_device_t device_handle, uint32_t index, ob2_status_t *status)
 获取设备内指定索引号绑定的相机类型 更多...
 
uint32_t ob2_device_get_camera_stream_profile_count (ob2_device_t device_handle, ob2_camera_type_t camera_type, ob2_status_t *status)
 获取指定相机类型支持的数据流配置个数 更多...
 
ob2_camera_stream_profile_t ob2_device_get_camera_stream_profile (ob2_device_t device_handle, ob2_camera_type_t camera_type, uint32_t index, ob2_status_t *status)
 通过索引号获取指定相机类型的数据流配置 更多...
 
uint32_t ob2_device_get_alignable_camera_stream_profile_count (ob2_device_t device_handle, ob2_images_align_mode_t image_align_mode, ob2_camera_stream_profile_t target_camera_stream_profile, ob2_status_t *status)
 获取支持对齐的相机数据流配置个数 更多...
 
ob2_camera_stream_profile_t ob2_device_get_alignable_camera_stream_profile (ob2_device_t device_handle, ob2_images_align_mode_t align_mode, ob2_camera_stream_profile_t target_camera_stream_profile, uint32_t index, ob2_status_t *status)
 通过索引号获取支持对齐的相机数据流配置 更多...
 
ob2_cameras_config_t ob2_device_create_cameras_config (ob2_device_t device_handle, ob2_status_t *status)
 创建设备的相机配置 更多...
 
void ob2_cameras_config_release (ob2_cameras_config_t cameras_config_handle, ob2_status_t *status)
 释放相机配置句柄 更多...
 
void ob2_cameras_config_set_camera_stream_profile (ob2_cameras_config_t cameras_config_handle, ob2_camera_type_t camera_type, const ob2_camera_stream_profile_t *stream_profile, ob2_status_t *status)
 设置相机数据流配置 更多...
 
void ob2_cameras_config_enable_camera_stream (ob2_cameras_config_t cameras_config_handle, ob2_camera_type_t camera_type, ob2_status_t *status)
 使能相机 更多...
 
void ob2_cameras_config_set_and_enable_camera_stream (ob2_cameras_config_t cameras_config_handle, ob2_camera_type_t camera_type, uint32_t width_pixels, uint32_t height_pixels, uint32_t frame_rate, ob2_image_format_t format, ob2_status_t *status)
 配置相机数据流并使能相机 更多...
 
void ob2_cameras_config_disable_camera_stream (ob2_cameras_config_t cameras_config_handle, ob2_camera_type_t camera_type, ob2_status_t *status)
 关闭(去除使能)相机数据流 更多...
 
void ob2_cameras_config_set_images_sync_mode (ob2_cameras_config_t cameras_config_handle, ob2_images_sync_mode_t images_sync_mode, ob2_status_t *status)
 设备内多相机图像同步模式配置 更多...
 
void ob2_cameras_config_set_produce_capture_policy (ob2_cameras_config_t cameras_config_handle, ob2_produce_capture_policy_t policy, ob2_status_t *status)
 capture 生成策略配置 更多...
 
void ob2_cameras_config_set_images_align_mode (ob2_cameras_config_t cameras_config_handle, ob2_images_align_mode_t mode, ob2_status_t *status)
 图像对齐模式配置 更多...
 
void ob2_cameras_config_set_cameras_sync_mode (ob2_cameras_config_t cameras_config_handle, ob2_cameras_sync_mode_t sync_mode, ob2_status_t *status)
 (单机内)多相机同步(同步曝光)模式配置 更多...
 
void ob2_cameras_config_set_cameras_sync_delay_usec (ob2_cameras_config_t cameras_config_handle, uint32_t cameras_sync_delay_usec, ob2_status_t *status)
 (单机内)多相机同步延时配置,用于控制从相机在主相机图像采集后延时多长时间开始图像采集 更多...
 
void ob2_cameras_config_set_wired_sync_mode (ob2_cameras_config_t cameras_config_handle, ob2_wired_sync_mode_t wired_sync_mode, ob2_status_t *status)
 外部同步模式配置(通常是通过同步信号线输入 / 输出同步信号完成同步,所以命名为 wired_sync_mode) 更多...
 
void ob2_cameras_config_set_secondary_delay_off_primary_usec (ob2_cameras_config_t cameras_config_handle, uint32_t secondary_delay_usec, ob2_status_t *status)
 从设备延时配置 更多...
 
ob2_cameras_calibration_t ob2_device_get_cameras_calibration (ob2_device_t device_handle, const ob2_cameras_config_t cameras_config_handle, ob2_status_t *status)
 获取当前配置下的相机标定参数 更多...
 
void ob2_device_start_cameras (ob2_device_t device_handle, const ob2_cameras_config_t cameras_config_handle, ob2_status_t *status)
 启动设备内相机工作(开流) 更多...
 
void ob2_device_start_cameras_with_callback (ob2_device_t device_handle, const ob2_cameras_config_t cameras_config_handle, ob2_capture_cb_t cb, void *user_data, ob2_status_t *status)
 通过回调返回 capture 的方式启动设备内相机工作(开流) 更多...
 
void ob2_device_update_cameras_config (ob2_device_t device_handle, const ob2_cameras_config_t cameras_config_handle, ob2_status_t *status)
 更新设备相机配置 更多...
 
void ob2_device_stop_cameras (ob2_device_t device_handle, ob2_status_t *status)
 停止设备内相机工作(关流) 更多...
 
ob2_capture_t ob2_device_get_capture (ob2_device_t device_handle, int32_t timeout_msec, ob2_status_t *status)
 获取 capture 更多...
 
ob2_capture_t ob2_capture_create (ob2_status_t *status)
 创建 capture 更多...
 
void ob2_capture_reference (ob2_capture_t capture_handle, ob2_status_t *status)
 增加 capture 引用计数 更多...
 
void ob2_capture_release (ob2_capture_t capture_handle, ob2_status_t *status)
 释放 capture 更多...
 
ob2_image_t ob2_capture_get_image (ob2_capture_t capture_handle, ob2_camera_type_t camera_type, ob2_status_t *status)
 获取指定相机的图像 更多...
 
ob2_image_t ob2_capture_get_color_image (ob2_capture_t capture_handle, ob2_status_t *status)
 获取 Color 相机图像 更多...
 
ob2_image_t ob2_capture_get_depth_image (ob2_capture_t capture_handle, ob2_status_t *status)
 获取 Depth 相机图像 更多...
 
ob2_image_t ob2_capture_get_ir_image (ob2_capture_t capture_handle, ob2_status_t *status)
 获取红外相机图像 更多...
 
void ob2_capture_set_image (ob2_capture_t capture_handle, ob2_camera_type_t camera_type, ob2_image_t image_handle, ob2_status_t *status)
 设置指定相机的图像 更多...
 
void ob2_capture_set_color_image (ob2_capture_t capture_handle, ob2_image_t image_handle, ob2_status_t *status)
 设置 Color 相机的图像 更多...
 
void ob2_capture_set_depth_image (ob2_capture_t capture_handle, ob2_image_t image_handle, ob2_status_t *status)
 设置 Depth 相机的图像 更多...
 
void ob2_capture_set_ir_image (ob2_capture_t capture_handle, ob2_image_t image_handle, ob2_status_t *status)
 设置红外相机的图像 更多...
 
ob2_image_t ob2_image_create (ob2_camera_type_t source_camera_type, ob2_image_format_t format, uint32_t width_pixels, uint32_t height_pixels, uint32_t stride_bytes, ob2_status_t *status)
 创建图像 更多...
 
ob2_image_t ob2_image_create_from_buffer (ob2_camera_type_t source_camera_type, ob2_image_format_t format, uint32_t width_pixels, uint32_t height_pixels, uint32_t stride_bytes, uint8_t *buffer, uint32_t buffer_size, ob2_buffer_release_cb_t buffer_release_cb, void *user_data, ob2_status_t *status)
 从指定 buffer 创建图像 更多...
 
void ob2_image_reference (ob2_image_t image_handle, ob2_status_t *status)
 增加图像引用计数 更多...
 
void ob2_image_release (ob2_image_t image_handle, ob2_status_t *status)
 释放图像 更多...
 
uint8_t * ob2_image_get_buffer (ob2_image_t image_handle, ob2_status_t *status)
 获取图像 buffer 更多...
 
uint32_t ob2_image_get_size (ob2_image_t image_handle, ob2_status_t *status)
 获取图像数据大小 更多...
 
ob2_image_format_t ob2_image_get_format (ob2_image_t image_handle, ob2_status_t *status)
 获取图像格式 更多...
 
uint32_t ob2_image_get_width_pixels (ob2_image_t image_handle, ob2_status_t *status)
 获取图像宽度 更多...
 
uint32_t ob2_image_get_height_pixels (ob2_image_t image_handle, ob2_status_t *status)
 获取图像高度 更多...
 
uint32_t ob2_image_get_stride_bytes (ob2_image_t image_handle, ob2_status_t *status)
 获取图像行跨度 更多...
 
uint64_t ob2_image_get_device_timestamp_usec (ob2_image_t image_handle, ob2_status_t *status)
 获取设备时间戳 更多...
 
uint64_t ob2_image_get_system_timestamp_usec (ob2_image_t image_handle, ob2_status_t *status)
 获取系统时间戳 更多...
 
ob2_camera_type_t ob2_image_get_source_camera_type (ob2_image_t image_handle, ob2_status_t *status)
 获取图像源相机类型 更多...
 
uint8_t ob2_image_get_available_bits_for_each_pixel (ob2_image_t image_handle, ob2_status_t *status)
 获取图像像素有效位数 更多...
 
float ob2_depth_image_get_value_scale (ob2_image_t image_handle, ob2_status_t *status)
 获取深度图像数值缩放系数 更多...
 

函数说明

◆ ob2_device_get_supported_camera_count()

uint32_t ob2_device_get_supported_camera_count ( ob2_device_t  device_handle,
ob2_status_t status 
)

获取设备支持的相机个数

一个设备除了拥有一个 Depth 相机外,还可能会包含 Color、IR 相机,视具体型号而定。

参数
[in]device_handle设备句柄
[out]status返回函数调用状态
返回
uint32_t 返回包含的相机个数

被这些函数引用 ob2::device::get_supported_camera_type_list().

◆ ob2_device_get_supported_camera_type()

ob2_camera_type_t ob2_device_get_supported_camera_type ( ob2_device_t  device_handle,
uint32_t  index,
ob2_status_t status 
)

获取设备内指定索引号绑定的相机类型

注意
@index 的数值范围为 [0~count-1](count 通过 ob2_device_get_supported_camera_count 获取),若传入范围之外的值,将通过 @status 返回 OB2_STATUS_LOGIC_ERROR
参数
[in]device_handle设备句柄
[in]index相机索引号
[out]status返回函数调用状态
返回
ob2_camera_type_t 返回相机类型

被这些函数引用 ob2::device::get_supported_camera_type_list().

◆ ob2_device_get_camera_stream_profile_count()

uint32_t ob2_device_get_camera_stream_profile_count ( ob2_device_t  device_handle,
ob2_camera_type_t  camera_type,
ob2_status_t status 
)

获取指定相机类型支持的数据流配置个数

注意
@camera_type 传入的值需要是该设备支持的相机类型,否则将通过 @status 返回 OB2_STATUS_LOGIC_ERROR
参数
[in]device_handle设备句柄
[in]camera_type相机类型
[out]status返回函数调用状态
返回
uint32_t 返回支持的流配置个数

被这些函数引用 ob2::device::get_camera_stream_profile_list().

◆ ob2_device_get_camera_stream_profile()

ob2_camera_stream_profile_t ob2_device_get_camera_stream_profile ( ob2_device_t  device_handle,
ob2_camera_type_t  camera_type,
uint32_t  index,
ob2_status_t status 
)

通过索引号获取指定相机类型的数据流配置

注意
@index 的数值范围为 [0~count-1](count 通过 ob2_device_get_camera_stream_profile_count 获取), 若传入范围之外的值,将通过 @status 返回 OB2_STATUS_LOGIC_ERROR
参数
[in]device_handle设备句柄
[in]camera_type相机类型
[in]index索引号
[out]status返回函数调用状态
返回
ob2_camera_stream_profile_t 返回相机数据流配置

被这些函数引用 ob2::device::get_camera_stream_profile_list() , 以及 ob2::device::get_default_camera_stream_profile().

◆ ob2_device_get_alignable_camera_stream_profile_count()

uint32_t ob2_device_get_alignable_camera_stream_profile_count ( ob2_device_t  device_handle,
ob2_images_align_mode_t  image_align_mode,
ob2_camera_stream_profile_t  target_camera_stream_profile,
ob2_status_t status 
)

获取支持对齐的相机数据流配置个数

在 cameras_config 中配置图像对齐模式时,可以先通过当前接口查询配置的不同相机数据流是否支持该对齐模式。

注意
@image_align_mode 不能为 OB2_IMAGES_ALIGN_MODE_DISABLE ,否则将通过 @status 返回 OB2_STATUS_LOGIC_ERROR
参数
[in]device_handle设备句柄
[in]image_align_mode图像对齐模式
[in]target_camera_stream_profile对齐的目标相机数据流配置(如:对齐模式为 OB2_IMAGES_ALIGN_MODE_D2C_HARDWARE ,则目标相机是 color 相机)
[out]status返回函数调用状态
返回
uint32_t 返回支持对齐的相机数据流配置个数

被这些函数引用 ob2::device::get_alignable_camera_stream_profile_list().

◆ ob2_device_get_alignable_camera_stream_profile()

ob2_camera_stream_profile_t ob2_device_get_alignable_camera_stream_profile ( ob2_device_t  device_handle,
ob2_images_align_mode_t  align_mode,
ob2_camera_stream_profile_t  target_camera_stream_profile,
uint32_t  index,
ob2_status_t status 
)

通过索引号获取支持对齐的相机数据流配置

在 cameras_config 中配置图像对齐模式时,可以先通过当前接口查询配置的不同相机数据流是否支持该对齐模式。

注意
@align_mode 不能为 OB2_IMAGES_ALIGN_MODE_DISABLE ,否则将通过 @status 返回 OB2_STATUS_LOGIC_ERROR
@index 的数值范围为 [0~count-1](count 通过 ob2_device_get_alignable_camera_stream_profile_count 获取), 若传入范围之外的值,将通过 @status 返回 OB2_STATUS_LOGIC_ERROR
参数
[in]device_handle设备句柄
[in]align_mode图像对齐模式
[in]target_camera_stream_profile对齐的目标相机数据流配置(如:对齐模式为 OB2_IMAGES_ALIGN_MODE_D2C_HARDWARE ,则目标相机是 color 相机)
[in]index相机数据流配置索引号
[out]status返回函数调用状态
返回
ob2_camera_stream_profile_t 返回支持对齐的相机数据流配置

被这些函数引用 ob2::device::get_alignable_camera_stream_profile_list().

◆ ob2_device_create_cameras_config()

ob2_cameras_config_t ob2_device_create_cameras_config ( ob2_device_t  device_handle,
ob2_status_t status 
)

创建设备的相机配置

相机配置用于配置设备内各相机的工作方式以及 SDK 内部对相机图像的处理方式(具体支持的功能请查看 cameras_config 各接口说明)

相机配置创建后会为所有支持的相机配置一个默认的流配置,但是所有相机都是默认未使能的。

注意
不再使用相机配置时,需要调用 ob2_cameras_config_release 接口释放相机配置句柄,否则会导致内存泄漏。
在 @device_handle 被释放后,除 ob2_cameras_config_release 外,将不再可以通过相机配置句柄去访问相关配置接口, 否则会通过 @status 返回 OB2_STATUS_RUNTIME_ERROR
参数
[in]device_handle设备句柄, 传入句柄进行相机配置已实现在调用各配置接口时完成配置参数的合法性检查
[out]status返回函数调用状态
返回
ob2_cameras_config_t 返回相机配置句柄

被这些函数引用 ob2::device::create_cameras_config().

◆ ob2_cameras_config_release()

void ob2_cameras_config_release ( ob2_cameras_config_t  cameras_config_handle,
ob2_status_t status 
)

释放相机配置句柄

参数
[in]cameras_config_handle需要被释放的相机配置句柄
[out]status返回函数调用状态

被这些函数引用 ob2::cameras_config::~cameras_config().

◆ ob2_cameras_config_set_camera_stream_profile()

void ob2_cameras_config_set_camera_stream_profile ( ob2_cameras_config_t  cameras_config_handle,
ob2_camera_type_t  camera_type,
const ob2_camera_stream_profile_t stream_profile,
ob2_status_t status 
)

设置相机数据流配置

注意
@camera_type 需要是 @cameras_config_handle 所绑定的设备支持的相机类型,否则将会通过 @status 返回 OB2_STATUS_LOGIC_ERROR
@stream_profile 需要是 @camera_type 指定类型相机支持的数据流配置,否则将会通过 @status 返回 OB2_STATUS_LOGIC_ERROR
参数
[in]cameras_config_handle相机配置句柄
[in]camera_type需要配置的相机类型
[in]stream_profile需要配置的相机数据流配置
[out]status返回函数调用状态

被这些函数引用 ob2::cameras_config::set_camera_stream_profile().

◆ ob2_cameras_config_enable_camera_stream()

void ob2_cameras_config_enable_camera_stream ( ob2_cameras_config_t  cameras_config_handle,
ob2_camera_type_t  camera_type,
ob2_status_t status 
)

使能相机

启动相机时会将相机配置内已使能的相机依据设置的数据流配置开启数据流

注意
@camera_type 需要是 @cameras_config_handle 所绑定的设备支持的相机类型,否则将会通过 @status 返回 OB2_STATUS_LOGIC_ERROR
参数
[in]cameras_config_handle相机配置句柄
[in]camera_type需要使能的相机类型
[out]status返回函数调用状态

被这些函数引用 ob2::cameras_config::enable_camera_stream().

◆ ob2_cameras_config_set_and_enable_camera_stream()

void ob2_cameras_config_set_and_enable_camera_stream ( ob2_cameras_config_t  cameras_config_handle,
ob2_camera_type_t  camera_type,
uint32_t  width_pixels,
uint32_t  height_pixels,
uint32_t  frame_rate,
ob2_image_format_t  format,
ob2_status_t status 
)

配置相机数据流并使能相机

启动相机时会将相机配置内已使能的相机依据设置的数据流配置开启数据流

相机数据流配置参数支持模糊匹配,即在进行匹配支持的相机数据流配置时,模糊匹配项不进行匹配,而是选用默认配置。

注意
@camera_type 需要是 @cameras_config_handle 所绑定的设备支持的相机类型,否则将会通过 @status 返回 OB2_STATUS_LOGIC_ERROR
相机数据流配置参数匹配失败后,将会通过 @status 返回 OB2_STATUS_LOGIC_ERROR
参数
[in]cameras_config_handle相机配置句柄
[in]camera_type需要使能的相机类型
[in]width_pixels配置的数据流图像宽度,单位:像素;可传入 OB2_ANY_WIDTH 进行模糊匹配。
[in]height_pixels配置的数据流图高度,单位:像素;可传入 OB2_ANY_HEIGHT 进行模糊匹配。
[in]frame_rate配置的数据流图像帧率,单位:fps;可传入 OB2_ANY_FRAME_RATE 进行模糊匹配。
[in]format配置的数据流图像格式; 可传入 OB2_ANY_FRAME_RATE 进行模糊匹配。
[out]status返回函数调用状态

被这些函数引用 ob2::cameras_config::enable_camera_stream().

◆ ob2_cameras_config_disable_camera_stream()

void ob2_cameras_config_disable_camera_stream ( ob2_cameras_config_t  cameras_config_handle,
ob2_camera_type_t  camera_type,
ob2_status_t status 
)

关闭(去除使能)相机数据流

注意
@camera_type 需要是 cameras_config_handle 所绑定的设备支持的相机类型,否则将会通过 @status 返回 OB2_STATUS_LOGIC_ERROR
参数
cameras_config_handle相机配置句柄
[in]camera_type需要关闭的相机类型
[out]status返回函数调用状态

被这些函数引用 ob2::cameras_config::set_disable_camera_stream().

◆ ob2_cameras_config_set_images_sync_mode()

void ob2_cameras_config_set_images_sync_mode ( ob2_cameras_config_t  cameras_config_handle,
ob2_images_sync_mode_t  images_sync_mode,
ob2_status_t status 
)

设备内多相机图像同步模式配置

SDK 内部会根据图像同步模式等待各相机的输出图像,然后将各相机的图像各取一帧用于生成 capture

注意
并非所有相机都支持配置为 OB2_IMAGES_SYNC_MODE_DEVICE_TIMESTAMP_MATCH , 并且在 Windows 系统平台,需要配置注册表后才能获取到设备时间戳用于同步(可通过管理员 权限运行 OrbbecViewer 工具自动完成配置)
参数
[in]cameras_config_handle相机配置句柄
[in]images_sync_mode图像同步模式,默认模式为:::OB2_IMAGES_SYNC_MODE_WAIT_LATER_COMER
[out]status返回函数调用状态

被这些函数引用 ob2::cameras_config::set_images_sync_mode().

◆ ob2_cameras_config_set_produce_capture_policy()

void ob2_cameras_config_set_produce_capture_policy ( ob2_cameras_config_t  cameras_config_handle,
ob2_produce_capture_policy_t  policy,
ob2_status_t status 
)

capture 生成策略配置

capture 生成时,会根据图像同步模式配置的方式,同步所有已启用相机的图像。但是由于不同相机帧率配置不一致、数据传输错误丢帧等原因,并不能保证 所有情况下都能够同步成功。capture 生成策略用于控制在已经无法同步所有已启用相机图像帧的情况下,如何处理当前相机图像(丢弃图像或者生成不完整 capture)。

注意
除配置为 OB2_PRODUCE_CAPTURE_SYNC_IMAGES_ONLY 模式外,其他模式用户接收到的 capture 可能为非完整 capture(者意味着 capture 内不一定包含所有已启用的相机图像
参数
[in]cameras_config_handle相机配置句柄
[in]policycapture 生成策略, 默认策略为:::OB2_PRODUCE_CAPTURE_SYNC_IMAGES_ONLY
[out]status返回函数调用状态

被这些函数引用 ob2::cameras_config::set_produce_capture_policy().

◆ ob2_cameras_config_set_images_align_mode()

void ob2_cameras_config_set_images_align_mode ( ob2_cameras_config_t  cameras_config_handle,
ob2_images_align_mode_t  mode,
ob2_status_t status 
)

图像对齐模式配置

注意
并不是所有相机流配置组合都支持启用对齐,可通过 ob2_device_get_alignable_camera_stream_profile_count 接口查询确认如何配置
参数
[in]cameras_config_handle相机配置句柄
[in]mode对齐模式,默认模式为:::OB2_IMAGES_ALIGN_MODE_DISABLE
[out]status返回函数调用状态

被这些函数引用 ob2::cameras_config::set_images_align_mode().

◆ ob2_cameras_config_set_cameras_sync_mode()

void ob2_cameras_config_set_cameras_sync_mode ( ob2_cameras_config_t  cameras_config_handle,
ob2_cameras_sync_mode_t  sync_mode,
ob2_status_t status 
)

(单机内)多相机同步(同步曝光)模式配置

注意
OB2_CAMERA_SYNC_MODE_COLOR_EXPOSURE_FIRSTOB2_CAMERA_SYNC_MODE_DEPTH_EXPOSURE_FIRST 模式: 需要保证 Color 与 Depth/IR 帧率配置一致
参数
[in]cameras_config_handle相机配置句柄
sync_mode同步模式,默认模式:::OB2_CAMERA_SYNC_MODE_CLOSE。
status返回函数调用状态

被这些函数引用 ob2::cameras_config::set_cameras_sync_mode().

◆ ob2_cameras_config_set_cameras_sync_delay_usec()

void ob2_cameras_config_set_cameras_sync_delay_usec ( ob2_cameras_config_t  cameras_config_handle,
uint32_t  cameras_sync_delay_usec,
ob2_status_t status 
)

(单机内)多相机同步延时配置,用于控制从相机在主相机图像采集后延时多长时间开始图像采集

当多相机同步模式配置为 OB2_CAMERA_SYNC_MODE_COLOR_EXPOSURE_FIRST 时表示 Depth/IR 相机相对 Color 相机的延时

当多相机同步模式配置为 OB2_CAMERA_SYNC_MODE_DEPTH_EXPOSURE_FIRST 时表示 Color 相机相对 Depth/IR 相机的延时

当多相机同步模式配置为 OB2_CAMERA_SYNC_MODE_CLOSE 时该延时配置无任何效果

参数
[in]cameras_config_handle相机配置句柄
[in]cameras_sync_delay_usec相机同步延时,单位为微秒, 默认值为 0
[out]status返回函数调用状态

被这些函数引用 ob2::cameras_config::set_cameras_sync_delay_usec().

◆ ob2_cameras_config_set_wired_sync_mode()

void ob2_cameras_config_set_wired_sync_mode ( ob2_cameras_config_t  cameras_config_handle,
ob2_wired_sync_mode_t  wired_sync_mode,
ob2_status_t status 
)

外部同步模式配置(通常是通过同步信号线输入 / 输出同步信号完成同步,所以命名为 wired_sync_mode)

该功能实际上是配置设备相机的触发信号来源,及触发信号中继输出。主要用于实现多机同步功能。

参数
[in]cameras_config_handle相机配置句柄
[in]wired_sync_mode外部同步模式,默认为 OB2_WIRED_SYNC_MODE_STANDALONE
[out]status返回函数调用状态

被这些函数引用 ob2::cameras_config::set_wired_sync_mode().

◆ ob2_cameras_config_set_secondary_delay_off_primary_usec()

void ob2_cameras_config_set_secondary_delay_off_primary_usec ( ob2_cameras_config_t  cameras_config_handle,
uint32_t  secondary_delay_usec,
ob2_status_t status 
)

从设备延时配置

配置为 OB2_WIRED_SYNC_MODE_SECONDARY 模式的设备,在接收到触发信号后,延时一段时间后再执行图像采集。

注意
仅当设备配置为 OB2_WIRED_SYNC_MODE_SECONDARY 时生效
该配置不会影响触发信号输出
延时时间应当小于一个图像采集周期
参数
[in]cameras_config_handle相机配置句柄
[in]secondary_delay_usec从设备延时,单位:微秒,默认值为 0。
[out]status返回函数调用状态

被这些函数引用 ob2::cameras_config::set_secondary_delay_off_primary_usec().

◆ ob2_device_get_cameras_calibration()

ob2_cameras_calibration_t ob2_device_get_cameras_calibration ( ob2_device_t  device_handle,
const ob2_cameras_config_t  cameras_config_handle,
ob2_status_t status 
)

获取当前配置下的相机标定参数

注意
不同的相机配置获取得到的标定参数是不一样的。所以需要先确保先完成相机配置,然后传入相机配置获取参数。
参数
[in]device_handle设备句柄
[in]cameras_config_handle相机配置句柄
[out]status返回函数调用状态
返回
ob2_cameras_calibration_t 相机标定参数

被这些函数引用 ob2::device::get_cameras_calibration().

◆ ob2_device_start_cameras()

void ob2_device_start_cameras ( ob2_device_t  device_handle,
const ob2_cameras_config_t  cameras_config_handle,
ob2_status_t status 
)

启动设备内相机工作(开流)

会根据 cameras_config_handle 开启已使能的相机数据流,同时也会根据配置内容完成设备、SDK 内部相关工作模块的配置。

开启数据流后,SDK 内部会将各相机输出的图像生成 capture,并将 capture 缓存在内部队列,用户需要通过 ob2_device_get_capture 接口获取 capture, 进而通过 capture 获取各相机图像数据。

注意
启动设备内相机工作后, 需要及时地通过 ob2_device_get_capture 接口循环获取 capture,否则内部缓存队列溢出后会丢失图像数据。
参数
[in]device_handle设备句柄
[in]cameras_config_handle相机配置句柄,调用完本接口后可立即停释放相机配置句柄。可传入 OB2_DEFAULT_CAMERAS_CONFIG, 这样 SDK 将通过各相机的默认流配置启动所有相机。
[out]status返回函数调用状态

被这些函数引用 ob2::device::start_cameras().

◆ ob2_device_start_cameras_with_callback()

void ob2_device_start_cameras_with_callback ( ob2_device_t  device_handle,
const ob2_cameras_config_t  cameras_config_handle,
ob2_capture_cb_t  cb,
void *  user_data,
ob2_status_t status 
)

通过回调返回 capture 的方式启动设备内相机工作(开流)

会根据 cameras_config_handle 开启已使能的相机数据流,同时也会根据配置内容完成设备、SDK 内部相关工作模块的配置

开启数据流后,SDK 内部会将各相机输出的图像生成 capture,并通过回调函数 cb 返回 capture

注意
回调函数 @cb 是用户自行编写的函数,需要保证该函数的执行时间小于 capture 生成周期(由已使能的相机中数据流帧率最大的数据流图像输出周期决定), 否则会导致 SDK 内部缓存队列溢出而丢失图像数据,并且图像数据会有累加延时导致图像实时性变差。对于某些型号的设备,甚至可能会导致停流。
参数
[in]device_handle设备句柄
[in]cameras_config_handle相机配置,调用完本接口后可立即停释放相机配置句柄。可传入 OB2_DEFAULT_CAMERAS_CONFIG, 这样 SDK 将通过各相机的默认流配置启动所有相机
[in]cbcapture 回调函数
[in]user_data用户自定义数据,会通过 cb 原样返回,用户可通过 user_data 传递上下文数据
[out]status返回函数调用状态

被这些函数引用 ob2::device::start_cameras_with_callback().

◆ ob2_device_update_cameras_config()

void ob2_device_update_cameras_config ( ob2_device_t  device_handle,
const ob2_cameras_config_t  cameras_config_handle,
ob2_status_t status 
)

更新设备相机配置

可实现设备相机工作过程中的配置更新,比如在不停止相机工作的情况下打开或关闭某一类型相机的数据流

注意
需求先启动设备内相机工作,否则调用本接口将没有任何实际意义
当前不支持设备内多相机同步配置及外部同步配置更新
参数
[in]device_handle设备句柄
[in]cameras_config_handle用于更新的相机配置
[out]status返回函数调用状态

被这些函数引用 ob2::device::update_cameras_config().

◆ ob2_device_stop_cameras()

void ob2_device_stop_cameras ( ob2_device_t  device_handle,
ob2_status_t status 
)

停止设备内相机工作(关流)

参数
[in]device_handle设备句柄
[out]status返回函数调用状态

被这些函数引用 ob2::device::stop_cameras().

◆ ob2_device_get_capture()

ob2_capture_t ob2_device_get_capture ( ob2_device_t  device_handle,
int32_t  timeout_msec,
ob2_status_t status 
)

获取 capture

配合 ob2_device_start_cameras 接口使用,在启动设备内相机工作后,通过本接口获取接收到图像后生成的 capture。

调用本接口后,如果 SDK 内部未有 capture 缓存在队列中,会进行阻塞式等待,直到成功获取到 capture 或者等待超过了 @timeout_msec 设定的时间。

注意
启动设备内相机工作后,需要及时地通过本接口循环获取 capture,否则内部缓存队列溢出后会丢失图像数据。
如果 @timeout_msec 设置时间后还未成功生成 capture,将会通过 @status 返回 OB2_STATUS_RUNTIME_ERROR ,同时返回的 capture 也为 NULL
成功获取到 capture 后,若不在使用该 capture,需要调用 ob2_capture_release 接口释放 capture 句柄,否则会导致内存泄漏。
参数
[in]device_handle设备句柄
[in]timeout_msec等待超时时间,可以设置为 OB2_WAIT_INFINITE 表示不限时等待。
[out]status返回函数调用状态
返回
ob2_capture_t 返回 capture 句柄

被这些函数引用 ob2::device::get_capture().

◆ ob2_capture_create()

ob2_capture_t ob2_capture_create ( ob2_status_t status)

创建 capture

创建 capture 后,可用于用户的自定义图像的暂存(通过 ob2_capture_set_image 实现图像暂存)

注意
创建 capture 后,若不在使用该 capture,需要调用 ob2_capture_release 接口释放 capture 句柄,否则会导致内存泄漏。
参数
[out]status返回函数调用状态
返回
ob2_capture_t 返回新创建的 capture 句柄

被这些函数引用 ob2::capture::capture().

◆ ob2_capture_reference()

void ob2_capture_reference ( ob2_capture_t  capture_handle,
ob2_status_t status 
)

增加 capture 引用计数

通过 SDK 的任何接口获取或创建的 capture 的引用计数都是 1,通过调用本接口可使引用计数加 1。然后每次调用 ob2_capture_release 会使引用计数减 1, 当引用计数减为 0 时,才会真正释放 capture 句柄所绑定的内存。

注意
调用本接口有较大风险,只有在清晰理解 capture 引用计数机制及各接口获取到的 capture 的引用计数值之后才可使用。 并且需求确保每调用一次本接口,就要在未来相应地调用一次 ob2_capture_release 接口,否则会导致内存泄漏。
参数
[in]capture_handlecapture 句柄
[out]status返回函数调用状态

◆ ob2_capture_release()

void ob2_capture_release ( ob2_capture_t  capture_handle,
ob2_status_t status 
)

释放 capture

实际上每次调用 ob2_capture_release 会将 capture 的引用计数减 1,当引用计数减为 0 时,才会真正释放 capture 句柄所绑定的内存。

参数
[in]capture_handlecapture 句柄
[out]status返回函数调用状态

被这些函数引用 ob2::capture::~capture().

◆ ob2_capture_get_image()

ob2_image_t ob2_capture_get_image ( ob2_capture_t  capture_handle,
ob2_camera_type_t  camera_type,
ob2_status_t status 
)

获取指定相机的图像

注意
如果当前 capture 内不包含指定相机的图像,将会通过 @status 返回 OB2_STATUS_LOGIC_ERROR ,同时返回的图像句柄为 NULL。 不包含指定相机的图像的原因可能为:
  1. 启动相机工作时 @camera_type 指定的相机未使能
  2. 启动相机工作时 @produce_capture_policy 默认策略被修改
成功获取到图像后,若不在使用该图像,需要调用 ob2_image_release 接口释放图像句柄,否则会导致内存泄漏。
参数
[in]capture_handlecapture 句柄
[in]camera_type相机类型
[out]status返回函数调用状态
返回
ob2_image_t 图像句柄

被这些函数引用 ob2::capture::get_image().

◆ ob2_capture_get_color_image()

ob2_image_t ob2_capture_get_color_image ( ob2_capture_t  capture_handle,
ob2_status_t status 
)

获取 Color 相机图像

注意
如果当前 capture 内不包含 Color 相机的图像,将会通过 @status 返回 OB2_STATUS_LOGIC_ERROR ,同时返回的图像句柄为 NULL。
成功获取到图像后,若不在使用该图像,需要调用 ob2_image_release 接口释放图像句柄,否则会导致内存泄漏。
参数
[in]capture_handlecapture 句柄
[out]status返回函数调用状态
返回
ob2_image_t 图像句柄

被这些函数引用 ob2::capture::get_color_image().

◆ ob2_capture_get_depth_image()

ob2_image_t ob2_capture_get_depth_image ( ob2_capture_t  capture_handle,
ob2_status_t status 
)

获取 Depth 相机图像

注意
如果当前 capture 内不包含 Depth 相机的图像,将会通过 @status 返回 OB2_STATUS_LOGIC_ERROR ,同时返回的图像句柄为 NULL。
成功获取到图像后,若不在使用该图像,需要调用 ob2_image_release 接口释放图像句柄,否则会导致内存泄漏。
参数
[in]capture_handlecapture 句柄
[out]status返回函数调用状态
返回
ob2_image_t 图像句柄

被这些函数引用 ob2::capture::get_depth_image().

◆ ob2_capture_get_ir_image()

ob2_image_t ob2_capture_get_ir_image ( ob2_capture_t  capture_handle,
ob2_status_t status 
)

获取红外相机图像

注意
如果当前 capture 内不包含红外相机的图像,将会通过 @status 返回 OB2_STATUS_LOGIC_ERROR ,同时返回的图像句柄为 NULL。
成功获取到图像后,若不在使用该图像,需要调用 ob2_image_release 接口释放图像句柄,否则会导致内存泄漏。
参数
[in]capture_handlecapture 句柄
[out]status返回函数调用状态
返回
ob2_image_t 图像句柄

被这些函数引用 ob2::capture::get_ir_image().

◆ ob2_capture_set_image()

void ob2_capture_set_image ( ob2_capture_t  capture_handle,
ob2_camera_type_t  camera_type,
ob2_image_t  image_handle,
ob2_status_t status 
)

设置指定相机的图像

会将图像拷贝(浅拷贝)保存一份到 capture 内,如果 capture 已包含指定相机的图像,则会先将原图像释放。

注意
调用本接口后,图像句柄还是需要用户调用 ob2_image_release 接口释放,否则会导致内存泄漏。
参数
[in]capture_handlecapture 句柄
[in]camera_type相机类型
[in]image_handle图像句柄
[out]status返回函数调用状态

被这些函数引用 ob2::capture::set_image().

◆ ob2_capture_set_color_image()

void ob2_capture_set_color_image ( ob2_capture_t  capture_handle,
ob2_image_t  image_handle,
ob2_status_t status 
)

设置 Color 相机的图像

会将图像拷贝(浅拷贝)保存一份到 capture 内,如果 capture 已包含 Color 相机的图像,则会先将原图像释放。

注意
调用本接口后,图像句柄还是需要用户调用 ob2_image_release 接口释放,否则会导致内存泄漏。
参数
[in]capture_handlecapture 句柄
[in]image_handle图像句柄
[out]status返回函数调用状态

被这些函数引用 ob2::capture::set_color_image().

◆ ob2_capture_set_depth_image()

void ob2_capture_set_depth_image ( ob2_capture_t  capture_handle,
ob2_image_t  image_handle,
ob2_status_t status 
)

设置 Depth 相机的图像

会将图像拷贝(浅拷贝)保存一份到 capture 内,如果 capture 已包含 Depth 相机的图像,则会先将原图像释放。

注意
调用本接口后,图像句柄还是需要用户调用 ob2_image_release 接口释放,否则会导致内存泄漏。
参数
[in]capture_handlecapture 句柄
[in]image_handle图像句柄
[out]status返回函数调用状态

被这些函数引用 ob2::capture::set_depth_image().

◆ ob2_capture_set_ir_image()

void ob2_capture_set_ir_image ( ob2_capture_t  capture_handle,
ob2_image_t  image_handle,
ob2_status_t status 
)

设置红外相机的图像

会将图像拷贝(浅拷贝)保存一份到 capture 内,如果 capture 已包含红外相机的图像,则会先将原图像释放。

注意
调用本接口后,图像句柄还是需要用户调用 ob2_image_release 接口释放,否则会导致内存泄漏。
参数
[in]capture_handlecapture 句柄
[in]image_handle图像句柄
[out]status返回函数调用状态

被这些函数引用 ob2::capture::set_ir_image().

◆ ob2_image_create()

ob2_image_t ob2_image_create ( ob2_camera_type_t  source_camera_type,
ob2_image_format_t  format,
uint32_t  width_pixels,
uint32_t  height_pixels,
uint32_t  stride_bytes,
ob2_status_t status 
)

创建图像

SDK 内部会根据图像格式、宽、高、行跨都等信息在内部申请一块合适大小内存的内存

注意
当创建的图像不再使用时,需要调用 ob2_image_release 接口释放图像句柄,否者将会导致内存泄漏
参数
[in]source_camera_type图像原相机类型(用于图像信息追踪,可以填 OB2_CAMERA_UNKNOWN
[in]format图像格式
[in]width_pixels图像宽,单位:像素
[in]height_pixels图像高,单位:像素
[in]stride_bytes图像行跨度,单位:字节
[out]status返回函数调用状态
返回
ob2_image_t 返回新创建的图像句柄

被这些函数引用 ob2::image::image().

◆ ob2_image_create_from_buffer()

ob2_image_t ob2_image_create_from_buffer ( ob2_camera_type_t  source_camera_type,
ob2_image_format_t  format,
uint32_t  width_pixels,
uint32_t  height_pixels,
uint32_t  stride_bytes,
uint8_t *  buffer,
uint32_t  buffer_size,
ob2_buffer_release_cb_t  buffer_release_cb,
void *  user_data,
ob2_status_t status 
)

从指定 buffer 创建图像

创建好的图像的 buffer 即为传入的 buffer,buffer 内存的申请和释放都需要用户代码完成

注意
buffer 内存需要由用户提前申请好,并且需要确保内存的大小与图像格式、宽、高、行跨都等条件匹配。
当创建的图像不再使用时,需要调用 ob2_image_release 接口释放图像句柄,否者可能会导致内存泄漏。
参数
[in]source_camera_type图像原相机类型(用于图像信息追踪,可以填 OB2_CAMERA_UNKNOWN
[in]format图像格式
[in]width_pixels图像宽,单位:像素
[in]height_pixels图像高,单位:像素
[in]stride_bytes图像行跨度,单位:字节
[in]bufferbuffer 地址指针
[in]buffer_sizebuffer 内存大小,单位:字节
[in]buffer_release_cbbuffer 释放回调函数,会在 image 释放时调用,用户需要确保该回调函数能够准确释放内存
[in]user_data用户自定义数据,会在调用 buffer_release_cb 时返回,用户可以传入上下文数据
[out]status返回函数调用状态
返回
ob2_image_t 返回新创建的图像句柄

被这些函数引用 ob2::image::image().

◆ ob2_image_reference()

void ob2_image_reference ( ob2_image_t  image_handle,
ob2_status_t status 
)

增加图像引用计数

通过 SDK 的任何接口获取或创建的图像的引用计数都是 1,通过调用本接口可使引用计数加 1。然后每次调用 ob2_image_release 会使引用计数减 1, 当引用计数减为 0 时,才会真正释放 image 句柄所绑定的内存。

注意
调用本接口有较大风险,只有在清晰理解 image 引用计数机制及各接口获取到的 image 的引用计数值之后才可使用。 并且需求确保每调用一次本接口,就要在未来相应地调用一次 ob2_image_release 接口,否则会导致内存泄漏。
参数
[in]image_handle图像句柄
[out]status返回函数调用状态

◆ ob2_image_release()

void ob2_image_release ( ob2_image_t  image_handle,
ob2_status_t status 
)

释放图像

实际上每次调用 ob2_image_release 会将图像的引用计数减 1,当引用计数减为 0 时,才会真正释放 image 句柄所绑定的内存。

参数
[in]image_handlecapture 句柄
[out]status返回函数调用状态

被这些函数引用 ob2::image::~image().

◆ ob2_image_get_buffer()

uint8_t * ob2_image_get_buffer ( ob2_image_t  image_handle,
ob2_status_t status 
)

获取图像 buffer

图像 buffer 内放的即是图像的数据,用户可以通过返回的 buffer 指针直接读取或修改图像数据。

注意
在图像被释放后,不要再对 buffer 指向内存进行访问,否则会出现意想不到的问题。
参数
[in]image_handle图像句柄
[out]status返回函数调用状态
返回
uint8_t* buffer 地址指针

被这些函数引用 ob2::image::get_buffer().

◆ ob2_image_get_size()

uint32_t ob2_image_get_size ( ob2_image_t  image_handle,
ob2_status_t status 
)

获取图像数据大小

通常图像的数据大小会与 buffer 内存大小一致,但是对于压缩或者编码格式图像,图像数据数据大小会小于 buffer 大小。 不过 buffer 大小对用户是没有啥实际意义的,所以可以不用理会

参数
[in]image_handle图像句柄
[out]status返回函数调用状态
返回
uint32_t 图像数据大小,单位:字节

被这些函数引用 ob2::image::get_size().

◆ ob2_image_get_format()

ob2_image_format_t ob2_image_get_format ( ob2_image_t  image_handle,
ob2_status_t status 
)

获取图像格式

图像格式代表着图像像素的排列方式、压缩、编码等特性。用户需要根据图像格式决定如何使用图像数据

参数
[in]image_handle图像句柄
[out]status返回函数调用状态
返回
ob2_image_format_t 返回图像格式

被这些函数引用 ob2::image::get_format().

◆ ob2_image_get_width_pixels()

uint32_t ob2_image_get_width_pixels ( ob2_image_t  image_handle,
ob2_status_t status 
)

获取图像宽度

参数
[in]image_handle图像句柄
[out]status返回函数调用状态
返回
uint32_t 返回图像宽度,单位:像素

被这些函数引用 ob2::image::get_width_pixels().

◆ ob2_image_get_height_pixels()

uint32_t ob2_image_get_height_pixels ( ob2_image_t  image_handle,
ob2_status_t status 
)

获取图像高度

参数
[in]image_handle图像句柄
[out]status返回函数调用状态
返回
uint32_t 返回图像高度,单位:像素

被这些函数引用 ob2::image::get_height_pixels().

◆ ob2_image_get_stride_bytes()

uint32_t ob2_image_get_stride_bytes ( ob2_image_t  image_handle,
ob2_status_t status 
)

获取图像行跨度

用户可以通过行跨度大小,对 buffer 地址指针进行偏移,从而快速获取图像指定坐标下的像素数据

注意
stride_bytes 与 width_pixels 不一定是倍数关系,因为某些条件下,可能会往图像每一行尾部数据填充一些空白数据以实现内存对齐
非像素平铺格式(MJPG、H264、H265、RLE、COMPRESSED 等)的图像没有 stride_bytes 概念,调用本接口会通过 @status 返回 OB2_STATUS_RUNTIME_ERROR
参数
[in]image_handle图像句柄
[out]status返回函数调用状态
返回
uint32_t 返回图像行跨度,单位:字节

被这些函数引用 ob2::image::get_stride_bytes().

◆ ob2_image_get_device_timestamp_usec()

uint64_t ob2_image_get_device_timestamp_usec ( ob2_image_t  image_handle,
ob2_status_t status 
)

获取设备时间戳

设备实间戳是指图像在设备端打上的时间戳,这个时间戳最接近图像生成时的时间

注意
默认情况下,这个时间戳是指设备从启动开始过去的时间长度,设备重启后会归零重计。设备定时计数器溢出后会归零重计。
由于设备时钟精度关系,虽然设备时间戳单位为微秒,但是某些设备的设备精度其实是毫秒,所以在数值上低三位会为零。
并不是所有设备都支持设备时间戳返回,并且由于 Windows 系统限定,需要完成一些特殊系统配置获取到时间戳 (可通过管理员 权限运行 OrbbecViewer 工具自动完成配置)。
参数
[in]image_handle图像句柄
[out]status返回函数调用状态
返回
uint64_t 返回设备时间戳,单位:微秒

被这些函数引用 ob2::image::get_device_timestamp_usec().

◆ ob2_image_get_system_timestamp_usec()

uint64_t ob2_image_get_system_timestamp_usec ( ob2_image_t  image_handle,
ob2_status_t status 
)

获取系统时间戳

系统时间戳是指 Host 端 SDK 接收到图像数据时打的时间戳(Host 的 localtime,是从 1970-01-01T00:00:00Z. 开始的计时)

参数
[in]image_handle图像句柄
[out]status返回函数调用状态
返回
uint64_t 返回系统时间戳,单位:微秒

被这些函数引用 ob2::image::get_system_timestamp_usec().

◆ ob2_image_get_source_camera_type()

ob2_camera_type_t ob2_image_get_source_camera_type ( ob2_image_t  image_handle,
ob2_status_t status 
)

获取图像源相机类型

通过 SDK 获取得到的图像都会填写源相机类型,代表了图像数据来源

参数
[in]image_handle图像句柄
[out]status返回函数调用状态
返回
ob2_camera_type_t 相机类型

被这些函数引用 ob2::image::get_source_camera_type().

◆ ob2_image_get_available_bits_for_each_pixel()

uint8_t ob2_image_get_available_bits_for_each_pixel ( ob2_image_t  image_handle,
ob2_status_t status 
)

获取图像像素有效位数

对于 Depth 和 IR 图像,通常其图像像素只有低位有效,高位固定为零。(比如某相机深度是 Y16 格式的图像,其像素位位数为 16, 但是只有低 14 位有效,高两位为零,此时调用本接口将返回 14)

参数
[in]image_handle图像句柄
[out]status返回函数调用状态
返回
uint8_t 返回图像像素有效位数

被这些函数引用 ob2::image::get_available_bits_for_each_pixel().

◆ ob2_depth_image_get_value_scale()

float ob2_depth_image_get_value_scale ( ob2_image_t  image_handle,
ob2_status_t status 
)

获取深度图像数值缩放系数

深度图像像素值意义为目标物体到相机的距离,单位为 mm。但是,由于相机特性、算法处理等原因,实际图像的数值可能会被缩放。 本接口返回用于将图像数据恢复为以毫米为单位的数值时所需要缩放的系数, 比如,scale=0.1 时, 某坐标下像素值为 pixel_value=10000, 则表示深度距离 value = pixel_Value*scale = 10000*0.1=1000mm。

注意
仅深度图像有效,非深度图像调用本接口将会通过 @status 返回 OB2_STATUS_RUNTIME_ERROR
参数
[in]image_handle图像句柄
[out]status返回函数调用状态
返回
uint8_t 返回深度图数值缩放系数

被这些函数引用 ob2::image::get_value_scale().