Astra SDK  v2.1.3
Public 成员函数 | 所有成员列表
astra::CoordinateMapper类 参考

CoordinateMapper 更多...

#include <Depth.hpp>

Public 成员函数

 CoordinateMapper (astra_depthstream_t depthStream)
 Constructs
 
 CoordinateMapper (const CoordinateMapper &rhs)
 copy Constructs
 
CoordinateMapper operator= (const CoordinateMapper &rhs)
 copy Constructs
 
astra::Vector3f convert_depth_to_world (astra::Vector3f depthPosition) const
 convert depth coor to world coor 更多...
 
Vector3f convert_world_to_depth (Vector3f worldPosition) const
 convert depth coor to world coor 更多...
 
void convert_depth_to_world (float depthX, float depthY, float depthZ, float &worldX, float &worldY, float &worldZ) const
 convert depth coor to world coor 更多...
 
void convert_world_to_depth (float worldX, float worldY, float worldZ, float &depthX, float &depthY, float &depthZ) const
 convert world coor to depth coor 更多...
 

详细描述

CoordinateMapper

Can convert coordinate system of point.

示例
ColorizedBodyViewer-SFML\main.cpp, DepthReaderEventCPP\main.cpp, MaskedColorViewer-SFML\main.cpp , 以及 SimpleDepthViewer-SFML\main.cpp.

成员函数说明

◆ convert_depth_to_world() [1/2]

astra::Vector3f astra::CoordinateMapper::convert_depth_to_world ( astra::Vector3f  depthPosition) const
inline

convert depth coor to world coor

参数
[in]dpethposition
返回
world position
示例
DepthReaderEventCPP\main.cpp , 以及 SimpleDepthViewer-SFML\main.cpp.

◆ convert_depth_to_world() [2/2]

void astra::CoordinateMapper::convert_depth_to_world ( float  depthX,
float  depthY,
float  depthZ,
float &  worldX,
float &  worldY,
float &  worldZ 
) const
inline

convert depth coor to world coor

参数
[in]depthx
[in]depthy
[in]depthz
[out]worldx
[out]worldy
[out]worldz

◆ convert_world_to_depth() [1/2]

void astra::CoordinateMapper::convert_world_to_depth ( float  worldX,
float  worldY,
float  worldZ,
float &  depthX,
float &  depthY,
float &  depthZ 
) const
inline

convert world coor to depth coor

参数
[in]worldx
[in]worldy
[in]worldz
[out]depthx
[out]depthy
[out]depthz

◆ convert_world_to_depth() [2/2]

Vector3f astra::CoordinateMapper::convert_world_to_depth ( Vector3f  worldPosition) const
inline

convert depth coor to world coor

参数
[in]worldposition
返回
dpeth position
示例
DepthReaderEventCPP\main.cpp.

该类的文档由以下文件生成: