Fawkes API Fawkes Development Version
|
Rectification Info File. More...
#include <>>
Classes | |
class | RectInfoBlockVector |
Vector that is used for maintaining the rectification info blocks. More... | |
Public Member Functions | |
RectificationInfoFile () | |
Constructor. | |
RectificationInfoFile (uint64_t cam_guid, const char *model) | |
Constructor. | |
~RectificationInfoFile () | |
Destructor. | |
uint64_t | guid () |
Get the GUID of camera. | |
const char * | model () |
Get the model of the camera. | |
void | add_rectinfo_block (RectificationInfoBlock *block) |
Add a rectification info block. | |
RectInfoBlockVector * | rectinfo_blocks () |
Get all rectification info blocks. | |
virtual void | read (const char *filename) |
Read file. |
Rectification Info File.
This class provides access files that contain rectification info. Currently it supports writing and reading of such data and supports any number of rectificatoin info blocks (although this is limited by the file format!).
It follows the file format as defined in rectinfo.h. Files that are written are always of the current version. The endianess is automatically set to the current's system endianess.
Definition at line 38 of file rectfile.h.
firevision::RectificationInfoFile::RectificationInfoFile | ( | ) |
Constructor.
This constructor may only be used for reading files, as the GUID of the camera is invalid for writing.
Definition at line 79 of file rectfile.cpp.
References firevision::FireVisionDataFile::_spec_header, firevision::FireVisionDataFile::_spec_header_size, firevision::_rectinfo_header_t::camera_model, and firevision::_rectinfo_header_t::guid.
firevision::RectificationInfoFile::RectificationInfoFile | ( | uint64_t | cam_guid, |
const char * | model | ||
) |
Constructor.
cam_guid | Camera globally unique identifier. |
model | String with the model name of the camera |
Definition at line 60 of file rectfile.cpp.
References firevision::FireVisionDataFile::_spec_header, firevision::FireVisionDataFile::_spec_header_size, firevision::_rectinfo_header_t::camera_model, and firevision::_rectinfo_header_t::guid.
firevision::RectificationInfoFile::~RectificationInfoFile | ( | ) |
Destructor.
Definition at line 95 of file rectfile.cpp.
void firevision::RectificationInfoFile::add_rectinfo_block | ( | RectificationInfoBlock * | block | ) |
Add a rectification info block.
This instance takes over ownership of the rectinfo block. This means that the object is automatically deleted if this instance is deleted.
block | block to add |
Definition at line 127 of file rectfile.cpp.
References firevision::FireVisionDataFile::add_block().
Referenced by firevision::TriclopsStereoProcessor::generate_rectification_lut().
uint64_t firevision::RectificationInfoFile::guid | ( | ) |
Get the GUID of camera.
Definition at line 105 of file rectfile.cpp.
References firevision::_rectinfo_header_t::guid.
Referenced by firevision::TriclopsStereoProcessor::verify_rectification_lut().
const char * firevision::RectificationInfoFile::model | ( | ) |
Get the model of the camera.
Definition at line 115 of file rectfile.cpp.
void firevision::RectificationInfoFile::read | ( | const char * | file_name | ) | [virtual] |
Read file.
file_name | file to read from |
Reimplemented from firevision::FireVisionDataFile.
Definition at line 156 of file rectfile.cpp.
References firevision::FireVisionDataFile::_spec_header, firevision::_rectinfo_header_t::camera_model, and firevision::_rectinfo_header_t::guid.
Referenced by firevision::TriclopsStereoProcessor::verify_rectification_lut().
RectificationInfoFile::RectInfoBlockVector * firevision::RectificationInfoFile::rectinfo_blocks | ( | ) |
Get all rectification info blocks.
Definition at line 137 of file rectfile.cpp.
References firevision::FireVisionDataFile::blocks().
Referenced by firevision::TriclopsStereoProcessor::verify_rectification_lut().