Raytrix Light Field SDK  v3.0
Logo
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events Groups Pages
Rx::FileIO::CTrixReader Class Reference

Detailed Description

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 ReadFrame (Rx::Interop::Runtime28::IImage *pxFocusImg, Rx::Interop::Runtime28::IImage *pxDepthImg, size_t nFrameIdx)
 Reads the given images from file. More...
 

Constructor & Destructor Documentation

Rx::FileIO::CTrixReader::CTrixReader ( )

Default constructor.

Rx::FileIO::CTrixReader::~CTrixReader ( )

Destructor.

Member Function Documentation

void Rx::FileIO::CTrixReader::Close ( )

Closes this CTrixWriter and the file.

size_t Rx::FileIO::CTrixReader::GetFrameCount ( ) const

Gets the frame count.

Returns
The frame count.
void Rx::FileIO::CTrixReader::Open ( const CRxString sxFilename)

Opens a new file for read.

Parameters
sxFilenameThe filename.
void Rx::FileIO::CTrixReader::ReadFrame ( Rx::Interop::Runtime28::IImage pxFocusImg,
Rx::Interop::Runtime28::IImage pxDepthImg,
size_t  nFrameIdx 
)

Reads the given images from file.

Parameters
pxFocusImg[in,out] Filename.
pxDepthImg[out] The focus image.
nFrameIdx[out] The depth image. Is scaled between 0.0 and 1.0.