Raytrix Light Field SDK
5.0
|
Provides methods for reading a ray sequence from a rays file.
Inherits Rx::LFR::CPimpl< CSeqFileReader_Impl, Interfaces::ESeqFileReader::ID >.
Public Member Functions | |
CSeqFileReader () | |
Default constructor. More... | |
CSeqFileReader (CSeqFileReader &&xSeqFileReader) | |
Move constructor. More... | |
~CSeqFileReader () | |
Destructor. Closes the file if opened. More... | |
void | Close () |
Closes the opened sequence file. More... | |
unsigned | GetDoubleShotMode () const |
Gets the double shot mode of the opened sequence. Is 0 if the sequence wasn't recorded in double shot mode. More... | |
uint64_t | GetFileSize () const |
Gets the file size in bytes. More... | |
unsigned | GetFrameCount () const |
Gets the number of frames in the opened sequence. More... | |
unsigned | GetFrameSize () const |
Gets the size of a frame in bytes. More... | |
void | GetGrayImage (CRayImage &xRayImage) |
void | GetGrayImage (CRxImage &xGrayImage) |
Reads the hold gray image of the sequence file. More... | |
CSeqFileReader_Impl & | GetImpl () |
Gets the non constant implementation. More... | |
const CSeqFileReader_Impl & | GetImpl () const |
Gets the constant implementation. More... | |
void * | GetInterface (Interfaces::ESeqFileReader::ID eInterface) |
Gets the interface defined by the given interface ID. More... | |
TInterface * | GetInterface (Interfaces::ESeqFileReader::ID eInterface) |
Gets the interface defined by the given interface ID. More... | |
const void * | GetInterface (Interfaces::ESeqFileReader::ID eInterface) const |
Gets the interface defined by the given interface ID. More... | |
const TInterface * | GetInterface (Interfaces::ESeqFileReader::ID eInterface) const |
Gets the interface defined by the given interface ID. More... | |
unsigned | GetLastFrameIndex () const |
Gets the frame index of the last read frame. More... | |
void | GetMetaData (CRayImage &xRayImage) |
void | GetMetaData (CRxMetaData &xMetaData) |
Reads the hold meta data of the sequence file. More... | |
unsigned | GetNextFrameIndex () const |
Gets the next frame index. More... | |
bool | HasInterface (Interfaces::ESeqFileReader::ID eInterface) |
Queries if this object has the given interface. More... | |
bool | IsOpen () const |
Queries if a file has been opened. More... | |
void | MoveFrameIndex (int iDelta) |
Moves the current frame index by the given number forward or backward. More... | |
void | Open (const CRxString &sxFilename) |
Opens the given ray sequence for reading. Then you can call ReadFrame to read frame by frame. More... | |
CSeqFileReader & | operator= (CSeqFileReader &&xSeqFileReader) |
Move assignment operator. More... | |
void | ReadFrame (CRayImage &xRayImage, bool bUpdateCalibration=true, bool bMoveToNextFrame=true) |
Reads the frame and its camera format at the current frame index. More... | |
void | SetNextFrameIndex (unsigned uNewIdx) |
Sets the current frame index. More... | |
Rx::LFR::CSeqFileReader::CSeqFileReader | ( | ) |
Default constructor.
Rx::LFR::CSeqFileReader::CSeqFileReader | ( | CSeqFileReader && | xSeqFileReader | ) |
Move constructor.
xSeqFileReader | [in,out] The sequence file reader instance. |
Rx::LFR::CSeqFileReader::~CSeqFileReader | ( | ) |
Destructor. Closes the file if opened.
void Rx::LFR::CSeqFileReader::Close | ( | ) |
Closes the opened sequence file.
unsigned Rx::LFR::CSeqFileReader::GetDoubleShotMode | ( | ) | const |
Gets the double shot mode of the opened sequence. Is 0 if the sequence wasn't recorded in double shot mode.
uint64_t Rx::LFR::CSeqFileReader::GetFileSize | ( | ) | const |
Gets the file size in bytes.
unsigned Rx::LFR::CSeqFileReader::GetFrameCount | ( | ) | const |
Gets the number of frames in the opened sequence.
unsigned Rx::LFR::CSeqFileReader::GetFrameSize | ( | ) | const |
Gets the size of a frame in bytes.
void Rx::LFR::CSeqFileReader::GetGrayImage | ( | CRayImage & | xRayImage | ) |
void Rx::LFR::CSeqFileReader::GetGrayImage | ( | CRxImage & | xGrayImage | ) |
Reads the hold gray image of the sequence file.
xGrayImage | [out] The gray image. |
|
inlineinherited |
Gets the non constant implementation.
|
inlineinherited |
Gets the constant implementation.
|
inherited |
Gets the interface defined by the given interface ID.
eInterface | [in] The interface ID. |
|
inlineinherited |
Gets the interface defined by the given interface ID.
TInterface | [in] The interface type. |
eInterface | [in] The interface. |
|
inherited |
Gets the interface defined by the given interface ID.
eInterface | [in] The interface ID. |
|
inlineinherited |
Gets the interface defined by the given interface ID.
TInterface | [in] The interface type. |
eInterface | [in] The interface ID. |
unsigned Rx::LFR::CSeqFileReader::GetLastFrameIndex | ( | ) | const |
Gets the frame index of the last read frame.
void Rx::LFR::CSeqFileReader::GetMetaData | ( | CRayImage & | xRayImage | ) |
void Rx::LFR::CSeqFileReader::GetMetaData | ( | CRxMetaData & | xMetaData | ) |
Reads the hold meta data of the sequence file.
xMetaData | [out] The meta data. |
unsigned Rx::LFR::CSeqFileReader::GetNextFrameIndex | ( | ) | const |
Gets the next frame index.
|
inlineinherited |
Queries if this object has the given interface.
eInterface | [in] The interface to query. |
bool Rx::LFR::CSeqFileReader::IsOpen | ( | ) | const |
Queries if a file has been opened.
void Rx::LFR::CSeqFileReader::MoveFrameIndex | ( | int | iDelta | ) |
Moves the current frame index by the given number forward or backward.
iDelta | The number of frames to move the current index. |
void Rx::LFR::CSeqFileReader::Open | ( | const CRxString & | sxFilename | ) |
Opens the given ray sequence for reading. Then you can call ReadFrame to read frame by frame.
Requires an authenticated dongle (Rx::LFR::CLightFieldRuntime::Authenticate).
sxFilename | [in] The file name. |
CSeqFileReader& Rx::LFR::CSeqFileReader::operator= | ( | CSeqFileReader && | xSeqFileReader | ) |
Move assignment operator.
xSeqFileReader | [in,out]The sequence file reader instance. |
void Rx::LFR::CSeqFileReader::ReadFrame | ( | CRayImage & | xRayImage, |
bool | bUpdateCalibration = true , |
||
bool | bMoveToNextFrame = true |
||
) |
Reads the frame and its camera format at the current frame index.
Before frames can be read, you need to call Open.
xRayImage | [out] The frame. |
bUpdateCalibration | (Optional) True to update the calibration with the next frame. |
bMoveToNextFrame | (Optional) True to move to next frame. |
void Rx::LFR::CSeqFileReader::SetNextFrameIndex | ( | unsigned | uNewIdx | ) |
Sets the current frame index.
uNewIdx | The new frame index. |