Astra SDK  v2.1.3
Public 成员函数 | 静态 Public 成员函数 | 所有成员列表
astra::ImageFrame< TDataType, TStreamType > 模板类 参考

Basic Image Frame 更多...

#include <Image.hpp>

Public 成员函数

 ImageFrame (astra_imageframe_t frame, astra_pixel_format_t expected_format)
 Default constructs 更多...
 
const bool is_valid () const
 get is vaild 更多...
 
const int width () const
 get width 更多...
 
const int height () const
 get height 更多...
 
const std::uint8_t bytes_per_pixel () const
 get bytes per pixel 更多...
 
const astra_frame_index_t frame_index () const
 get frame index 更多...
 
const astra_imageframe_t handle () const
 get handle 更多...
 
const TDataType * data () const
 get data pointer 更多...
 
const size_t byte_length () const
 get byte length 更多...
 
const size_t length () const
 get length 更多...
 
void copy_to (TDataType *buffer) const
 copy to buffer 更多...
 
void rotate (int angle)
 

静态 Public 成员函数

static astra_stream_type_t stream_type ()
 get stream type 更多...
 
template<typename TFrameType >
static TFrameType acquire (astra_reader_frame_t readerFrame, astra_stream_subtype_t subtype)
 acquire frame 更多...
 

详细描述

template<typename TDataType, astra_stream_type_t TStreamType>
class astra::ImageFrame< TDataType, TStreamType >

Basic Image Frame

构造及析构函数说明

◆ ImageFrame()

template<typename TDataType , astra_stream_type_t TStreamType>
astra::ImageFrame< TDataType, TStreamType >::ImageFrame ( astra_imageframe_t  frame,
astra_pixel_format_t  expected_format 
)
inline

Default constructs

参数
[in]frame
[in]expected_format

成员函数说明

◆ acquire()

template<typename TDataType , astra_stream_type_t TStreamType>
template<typename TFrameType >
static TFrameType astra::ImageFrame< TDataType, TStreamType >::acquire ( astra_reader_frame_t  readerFrame,
astra_stream_subtype_t  subtype 
)
inlinestatic

acquire frame

返回
a frame

◆ byte_length()

template<typename TDataType , astra_stream_type_t TStreamType>
const size_t astra::ImageFrame< TDataType, TStreamType >::byte_length ( ) const
inline

get byte length

返回
byte length

◆ bytes_per_pixel()

template<typename TDataType , astra_stream_type_t TStreamType>
const std::uint8_t astra::ImageFrame< TDataType, TStreamType >::bytes_per_pixel ( ) const
inline

get bytes per pixel

返回
bytes per pixel

◆ copy_to()

template<typename TDataType , astra_stream_type_t TStreamType>
void astra::ImageFrame< TDataType, TStreamType >::copy_to ( TDataType *  buffer) const
inline

copy to buffer

参数
[in/out]buffer

◆ data()

template<typename TDataType , astra_stream_type_t TStreamType>
const TDataType* astra::ImageFrame< TDataType, TStreamType >::data ( ) const
inline

get data pointer

返回
data pointer

◆ frame_index()

template<typename TDataType , astra_stream_type_t TStreamType>
const astra_frame_index_t astra::ImageFrame< TDataType, TStreamType >::frame_index ( ) const
inline

get frame index

返回
frame index

◆ handle()

template<typename TDataType , astra_stream_type_t TStreamType>
const astra_imageframe_t astra::ImageFrame< TDataType, TStreamType >::handle ( ) const
inline

get handle

返回
handle

◆ height()

template<typename TDataType , astra_stream_type_t TStreamType>
const int astra::ImageFrame< TDataType, TStreamType >::height ( ) const
inline

get height

返回
height

◆ is_valid()

template<typename TDataType , astra_stream_type_t TStreamType>
const bool astra::ImageFrame< TDataType, TStreamType >::is_valid ( ) const
inline

get is vaild

返回
is vaild

◆ length()

template<typename TDataType , astra_stream_type_t TStreamType>
const size_t astra::ImageFrame< TDataType, TStreamType >::length ( ) const
inline

get length

返回
length

◆ rotate()

template<typename TDataType , astra_stream_type_t TStreamType>
void astra::ImageFrame< TDataType, TStreamType >::rotate ( int  angle)
inline

rotate image frame, such as depth, color, masked color

参数
anglethe angle of clockwise direction rotation, can be 90 and 270.

◆ stream_type()

template<typename TDataType , astra_stream_type_t TStreamType>
static astra_stream_type_t astra::ImageFrame< TDataType, TStreamType >::stream_type ( )
inlinestatic

get stream type

返回
stream type

◆ width()

template<typename TDataType , astra_stream_type_t TStreamType>
const int astra::ImageFrame< TDataType, TStreamType >::width ( ) const
inline

get width

返回
width

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