TRIX file reader.
Public Member Functions | |
CTrixReader () | |
Default constructor. More... | |
~CTrixReader () | |
Destructor. More... | |
void | Close () |
Closes this CTrixWriter and the file. More... | |
size_t | GetFrameCount () const |
Gets the frame count. More... | |
void | Open (const CRxString &sxFilename) |
Opens a new file for read. More... | |
void | ReadD3DRange (float &fxMin, float &fxMax, float &fyMin, float &fyMax, float &fzMin, float &fZMax, size_t nFrameIdx) |
Reads 3 d range. More... | |
void | ReadDepthRange (float &fMin, float &fMax, size_t nFrameIdx) |
Reads depth range of the depth map. More... | |
void | ReadFrame (Rx::Interop::Runtime28::IImage *pxFocusImg, Rx::Interop::Runtime28::IImage *pxDepthImg, Rx::Interop::Runtime28::IImage *pxDepth3DImg, size_t nFrameIdx) |
Reads the given images from file. More... | |
Rx::FileIO::CTrixReader::CTrixReader | ( | ) |
Default constructor.
Rx::FileIO::CTrixReader::~CTrixReader | ( | ) |
Destructor.
void Rx::FileIO::CTrixReader::Close | ( | ) |
Closes this CTrixWriter and the file.
size_t Rx::FileIO::CTrixReader::GetFrameCount | ( | ) | const |
Gets the frame count.
void Rx::FileIO::CTrixReader::Open | ( | const CRxString & | sxFilename | ) |
Opens a new file for read.
sxFilename | The filename. |
void Rx::FileIO::CTrixReader::ReadD3DRange | ( | float & | fxMin, |
float & | fxMax, | ||
float & | fyMin, | ||
float & | fyMax, | ||
float & | fzMin, | ||
float & | fZMax, | ||
size_t | nFrameIdx | ||
) |
Reads 3 d range.
[in,out] | fxMin | The X minimum. |
[in,out] | fxMax | The X maximum. |
[in,out] | fyMin | The Y minimum. |
[in,out] | fyMax | The Y maximum. |
[in,out] | fzMin | The Z minimum. |
[in,out] | fZMax | The Z maximum. |
nFrameIdx | Zero-based index of the frame. |
void Rx::FileIO::CTrixReader::ReadDepthRange | ( | float & | fMin, |
float & | fMax, | ||
size_t | nFrameIdx | ||
) |
Reads depth range of the depth map.
[in,out] | fMin | The minimum. |
[in,out] | fMax | The maximum. |
nFrameIdx | Zero-based index of the frame. |
void Rx::FileIO::CTrixReader::ReadFrame | ( | Rx::Interop::Runtime28::IImage * | pxFocusImg, |
Rx::Interop::Runtime28::IImage * | pxDepthImg, | ||
Rx::Interop::Runtime28::IImage * | pxDepth3DImg, | ||
size_t | nFrameIdx | ||
) |
Reads the given images from file.
[out] | pxFocusImg | The focus image. |
[out] | pxDepthImg | The depth image. |
nFrameIdx | The frame index to read starting with frame 0. |