Raytrix Light Field SDK
5.0
|
Defines a single camera or ray image calibration, including a possible gray image.
Inherits Rx::LFR::CParametersPimpl< CCalibration_Impl, Params::ECalib::ID, Interfaces::ECalib::ID >.
Public Types | |
typedef Interfaces::ECalib::ID | EnumInterfaceType |
typedef Params::ECalib::ID | EnumType |
The type of the parameter enum. Is used by managed wrapper classes. More... | |
Public Member Functions | |
CCalibration () | |
Default constructor. Creates an uninitialized calibration. Call SetToDefault to initialize it. More... | |
CCalibration (CCalibration &&xCalibration) | |
Move constructor. More... | |
~CCalibration () | |
Destructor. Frees all used memory including the gray image. More... | |
const void * | GetCameraFormat () const |
Gets the pointer to the internal camera format. Only for internal purposes. More... | |
CRxMapping3D & | GetDepthCorrectionVolume () |
Gets the depth correction volume. More... | |
const CRxMapping3D & | GetDepthCorrectionVolume () const |
Gets the depth correction volume. More... | |
CRxImage & | GetGrayImage () |
Gets the gray image. The gray image is invalid if this calibration has no gray image. More... | |
const CRxImage & | GetGrayImage () const |
Gets the gray image. The gray image is invalid if this calibration has no gray image. More... | |
void | GetGridData (CRxArray2DDouble &adLensData2D, bool bMLI) const |
Gets the grid data of this calibration. More... | |
CCalibration_Impl & | GetImpl () |
Gets the non constant implementation. More... | |
const CCalibration_Impl & | GetImpl () const |
Gets the constant implementation. More... | |
void * | GetInterface (Interfaces::ECalib::ID eInterface) |
Gets the interface defined by the given interface ID. More... | |
TInterface * | GetInterface (Interfaces::ECalib::ID eInterface) |
Gets the interface defined by the given interface ID. More... | |
const void * | GetInterface (Interfaces::ECalib::ID eInterface) const |
Gets the interface defined by the given interface ID. More... | |
const TInterface * | GetInterface (Interfaces::ECalib::ID eInterface) const |
Gets the interface defined by the given interface ID. More... | |
CParameters< Params::ECalib::ID > & | GetParams () |
const CParameters< Params::ECalib::ID > & | GetParams () const |
bool | HasDepthCorrectionVolume () const |
Query if this object has a depth correction volume. More... | |
bool | HasGrayImage () const |
Queries if this calibration has a gray image. More... | |
bool | HasInterface (Interfaces::ECalib::ID eInterface) |
Queries if this object has the given interface. More... | |
CCalibration & | operator= (CCalibration &&xCalibration) |
Move assignment operator. More... | |
void | SaveAsXmlFile (const CRxString &sxFilename) |
Saves some details of this calibration as a XML file. More... | |
void | SaveAsXmlString (CRxString &sxXml) |
Saves some details of this calibration as a XML string. More... | |
void | SetCameraFormat (const void *pvData) |
Sets the camera format by pointer. Only for internal purposes. More... | |
void | SetDepthCorrectionVolume (const CRxMapping3D &xMapping) |
Sets the depth correction volume. This copies the given mapping into this calibration. More... | |
void | SetDepthCorrectionVolume (CRxMapping3D &&xMapping) |
Sets the depth correction volume. This moves the given mapping into this calibration. More... | |
void | SetGrayImage (const CRxImage &xImg) |
Sets the given image as the gray image. This copies the given image into this calibration. More... | |
void | SetGrayImage (CRxImage &&xImg) |
Sets the given image as the gray image. This moves the given image into this calibration. More... | |
void | SetToDefault (int iHeightPX, int iWidthPX) |
Sets this calibration to default. All applied parameters are reset. The gray image is not affected. More... | |
|
inherited |
|
inherited |
The type of the parameter enum. Is used by managed wrapper classes.
Rx::LFR::CCalibration::CCalibration | ( | ) |
Default constructor. Creates an uninitialized calibration. Call SetToDefault to initialize it.
Rx::LFR::CCalibration::CCalibration | ( | CCalibration && | xCalibration | ) |
Move constructor.
xCalibration | [in,out]The calibration instance. |
Rx::LFR::CCalibration::~CCalibration | ( | ) |
Destructor. Frees all used memory including the gray image.
const void* Rx::LFR::CCalibration::GetCameraFormat | ( | ) | const |
Gets the pointer to the internal camera format. Only for internal purposes.
CRxMapping3D& Rx::LFR::CCalibration::GetDepthCorrectionVolume | ( | ) |
Gets the depth correction volume.
const CRxMapping3D& Rx::LFR::CCalibration::GetDepthCorrectionVolume | ( | ) | const |
Gets the depth correction volume.
CRxImage& Rx::LFR::CCalibration::GetGrayImage | ( | ) |
Gets the gray image. The gray image is invalid if this calibration has no gray image.
const CRxImage& Rx::LFR::CCalibration::GetGrayImage | ( | ) | const |
Gets the gray image. The gray image is invalid if this calibration has no gray image.
void Rx::LFR::CCalibration::GetGridData | ( | CRxArray2DDouble & | adLensData2D, |
bool | bMLI | ||
) | const |
Gets the grid data of this calibration.
The grid data is a 2D vector of lens information. For each lens on the grid exists a four component entry with the following values:
adLensData2D | [out] The 2D lens information vector. |
bMLI | [in] True to get the MLI grid. False to get the MLA grid. |
|
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. |
|
inherited |
|
inherited |
bool Rx::LFR::CCalibration::HasDepthCorrectionVolume | ( | ) | const |
Query if this object has a depth correction volume.
bool Rx::LFR::CCalibration::HasGrayImage | ( | ) | const |
Queries if this calibration has a gray image.
|
inlineinherited |
Queries if this object has the given interface.
eInterface | [in] The interface to query. |
CCalibration& Rx::LFR::CCalibration::operator= | ( | CCalibration && | xCalibration | ) |
Move assignment operator.
xCalibration | [in,out] The calibration instance. |
void Rx::LFR::CCalibration::SaveAsXmlFile | ( | const CRxString & | sxFilename | ) |
Saves some details of this calibration as a XML file.
sxFilename | [in] The file name. |
void Rx::LFR::CCalibration::SaveAsXmlString | ( | CRxString & | sxXml | ) |
Saves some details of this calibration as a XML string.
sxXml | [out] The XML string. |
void Rx::LFR::CCalibration::SetCameraFormat | ( | const void * | pvData | ) |
Sets the camera format by pointer. Only for internal purposes.
pvData | [in] The pointer to the camera format to set. |
void Rx::LFR::CCalibration::SetDepthCorrectionVolume | ( | const CRxMapping3D & | xMapping | ) |
Sets the depth correction volume. This copies the given mapping into this calibration.
xMapping | [in] The mapping. |
void Rx::LFR::CCalibration::SetDepthCorrectionVolume | ( | CRxMapping3D && | xMapping | ) |
Sets the depth correction volume. This moves the given mapping into this calibration.
xMapping | [in] The mapping is invalid after this call. |
void Rx::LFR::CCalibration::SetGrayImage | ( | const CRxImage & | xImg | ) |
Sets the given image as the gray image. This copies the given image into this calibration.
xImg | [in] The gray image. |
void Rx::LFR::CCalibration::SetGrayImage | ( | CRxImage && | xImg | ) |
Sets the given image as the gray image. This moves the given image into this calibration.
xImg | [in] The gray image. Is invalid after this call. |
void Rx::LFR::CCalibration::SetToDefault | ( | int | iHeightPX, |
int | iWidthPX | ||
) |
Sets this calibration to default. All applied parameters are reset. The gray image is not affected.
iHeightPX | [in] The height of the camera sensor in pixels. |
iWidthPX | [in] The width of the camera sensor in pixels. |