Astra SDK  v2.1.3
Public 成员函数 | 静态 Public 属性 | 所有成员列表
astra::DepthStream类 参考

A Depth Stream 更多...

#include <Depth.hpp>

类 astra::DepthStream 继承关系图:
astra::ImageStream astra::DataStream

Public 成员函数

 DepthStream (astra_streamconnection_t connection)
 
astra_conversion_cache_t depth_to_world_data () const
 get world conversion 更多...
 
bool registration_enabled () const
 return is registration enabled 更多...
 
void enable_registration (bool enable)
 enable registration 更多...
 
void set_d2c_resolution (int mode)
 set depth to color resolution if device supports. 更多...
 
int get_d2c_resolution ()
 get depth to color resolution if device supports. 更多...
 
void serial_number (char *serialnumber, uint32_t length) const
 get serial number 更多...
 
std::string serial_number () const
 get serial number 更多...
 
std::uint32_t chip_id () const
 get chip id 更多...
 
void start_record (std::string filename)
 start record oni file. 更多...
 
void stop_record ()
 stop record oni file.
 
const CoordinateMappercoordinateMapper () const
 get Coordinate Mapper 更多...
 
- Public 成员函数 继承自 astra::ImageStream
 ImageStream (astra_streamconnection_t connection)
 
float hFov () const
 get horizontal fov 更多...
 
float vFov () const
 get vertical fov 更多...
 
astra_usb_info_t usb_info () const
 get usb_info 更多...
 
bool mirroring_enabled () const
 get is mirroring 更多...
 
void enable_mirroring (bool mirroring)
 enable mirroring 更多...
 
std::vector< ImageStreamModeavailable_modes () const
 get available_modes 更多...
 
ImageStreamMode mode () const
 get current image mode 更多...
 
void set_mode (const ImageStreamMode &mode)
 set current image mode 更多...
 
- Public 成员函数 继承自 astra::DataStream
 DataStream (astra_streamconnection_t connection)
 default constructs 更多...
 
bool is_available ()
 start stream
更多...
 
void start ()
 start stream

 
void stop ()
 stop stream

 

静态 Public 属性

static const astra_stream_type_t id = ASTRA_STREAM_DEPTH
 

详细描述

A Depth Stream

Depth Stream is a stream form depth sensor device.

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

成员函数说明

◆ chip_id()

std::uint32_t astra::DepthStream::chip_id ( ) const
inline

get chip id

返回
chip id
示例
DepthReaderEventCPP\main.cpp.

◆ coordinateMapper()

const CoordinateMapper& astra::DepthStream::coordinateMapper ( ) const
inline

get Coordinate Mapper

返回
Coordinate Mapper

◆ depth_to_world_data()

astra_conversion_cache_t astra::DepthStream::depth_to_world_data ( ) const
inline

get world conversion

返回
world conversion

◆ enable_registration()

void astra::DepthStream::enable_registration ( bool  enable)
inline

enable registration

参数
[in]enable

◆ get_d2c_resolution()

int astra::DepthStream::get_d2c_resolution ( )
inline

get depth to color resolution if device supports.

返回
mode refer to device.

◆ registration_enabled()

bool astra::DepthStream::registration_enabled ( ) const
inline

return is registration enabled

返回
registration enabled

◆ serial_number() [1/2]

std::string astra::DepthStream::serial_number ( ) const
inline

get serial number

返回
serial number

◆ serial_number() [2/2]

void astra::DepthStream::serial_number ( char *  serialnumber,
uint32_t  length 
) const
inline

get serial number

参数
[in/out]serial number data buffer
[in]lengthof serial number

◆ set_d2c_resolution()

void astra::DepthStream::set_d2c_resolution ( int  mode)
inline

set depth to color resolution if device supports.

参数
[in]moderefer to device.

◆ start_record()

void astra::DepthStream::start_record ( std::string  filename)
inline

start record oni file.

参数
[in]filenamethe full name of oni file.

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