Provides methods for managing camera calibrations. This includes creating, loading and saving.
Inherits Rx::LFR::CPimpl< CCalibrationManager_Impl, Interfaces::ECalibManager::ID >.
Public Member Functions | |
CCalibrationManager_Impl & | GetImpl () |
Gets the non constant implementation. More... | |
const CCalibrationManager_Impl & | GetImpl () const |
Gets the constant implementation. More... | |
const void * | GetInterface (Interfaces::ECalibManager::ID eInterface) const |
Gets the interface defined by the given interface ID. More... | |
bool | HasInterface (Interfaces::ECalibManager::ID eInterface) |
Queries if this object has the given interface. More... | |
Static Public Member Functions | |
static CRxString | CreateCalibration (const CCamera &xCamera) |
Creates a new calibration and assigns it to the given camera. More... | |
static CRxString | CreateCalibration (const CRxString &sxCamType, const CRxString &sxCamSerial) |
Creates a new calibration and assigns it to the given camera (defined by type and serial). More... | |
static CRxString | CreateCalibration (const CRxString &sxCamHardwareID) |
Creates a new calibration and assigns it to the given camera (defined by hardware ID). More... | |
static void | CreateDatabase (const CCamera &xCamera, bool bForce) |
Creates a calibration database for the given camera. More... | |
static void | CreateDatabase (const CRxString &sxCamType, const CRxString &sxCamSerial, bool bForce) |
Creates a calibration database for the given camera (defined by type and serial). More... | |
static void | CreateDatabase (const CRxString &sxCamHardwareID, bool bForce) |
Creates a calibration database for the given camera (defined by hardware ID). More... | |
static void | DeleteCalibration (const CRxString &sxGUID) |
Deletes the calibration with the given GUID. More... | |
static void | GetCalibrationGUIDs (CRxArrayString &asxGUIDs) |
Gets an array of GUIDs from all calibrations. More... | |
static void | GetCalibrationGUIDs (CRxArrayString &asxGUIDs, const CCamera &xCamera) |
Gets an array of GUIDs from all calibrations of the given camera. More... | |
static CRxString | GetCameraName (const CCamera &xCamera) |
Gets the Raytrix name of the given camera. More... | |
static CRxString | GetCameraSerial (const CCamera &xCamera) |
Gets the Raytrix serial of the given camera. More... | |
static CRxString | GetDefaultCalibrationGUID (const CCamera &xCamera) |
Gets the GUID of the default calibration of the given camera. More... | |
static CRxString | GetDefaultCalibrationGUID (const CRxString &sxSerial, const CRxString &sxDriver) |
Gets the GUID of the default calibration of the given camera defined by the camera serial and the driver name. More... | |
static void * | GetInterface (Interfaces::ECalibManager::ID eData) |
Gets the interface defined by ECalibrationManagerInterface. More... | |
static CRxString | GetMasterCalibrationGUID (const CCamera &xCamera) |
Gets the GUID of the master calibration of the given camera. More... | |
static CRxString | GetMasterCalibrationGUID (const CRxString &sxSerial, const CRxString &sxDriver) |
Gets the GUID of the master calibration of the given camera defined by the camera serial and the driver name. More... | |
static void | GetMasterCalibrationGUIDs (CRxArrayString &asxGUIDs) |
Gets an array of GUIDs from all master calibrations. Each camera has a single master calibration. More... | |
static void | GetMetaData (CRxCalibMetaData &xData, const CRxString &sxGUID) |
Gets the calibration meta data of the given calibration. More... | |
static bool | HasDatabase (const CCamera &xCamera) |
Queries if the there is a calibration database for the given camera. More... | |
static void | Initialize () |
Initializes this calibration manager and reads all calibrations from disk. More... | |
static void | Initialize (const CRxString &sxFolder) |
Initializes this calibration manager and reads all calibrations from disk. More... | |
static void | LoadCalibration (CCalibration &xCalib, const CRxString &sxGUID, bool bLoadGrayImg) |
Loads the calibration with the given GUID. More... | |
static void | LoadDefaultCalibration (CCalibration &xCalib, const CCamera &xCamera, bool bLoadGrayImg) |
Loads the default calibration of the given camera. More... | |
static void | LoadDefaultCalibration (CCalibration &xCalib, const CRxString &sCameraSerial, const CRxString &sDriverName, bool bLoadGrayImg) |
Loads the default calibration of the given camera defined by the camera serial and the driver name. More... | |
static void | SaveCalibration (const CCalibration &xCalib, const CRxString &sxGUID, bool bSaveGrayImg) |
Saves the given calibration to disk. More... | |
static void | SetCameraName (const CCamera &xCamera, const CRxString &sxName) |
Sets the Raytrix name of the given camera. Requires Dongle::ERuntimeFeature::Master. More... | |
static void | SetCameraSerial (const CCamera &xCamera, const CRxString &sxSerial) |
Sets the Raytrix serial of the given camera. Requires Dongle::ERuntimeFeature::Master. More... | |
static void | SetMetaData (const CRxCalibMetaData &xData, const CRxString &sxGUID) |
Sets the calibration meta data of the given calibration. The meta data of the master calibration cannot be set. More... | |
Creates a new calibration and assigns it to the given camera.
Requires Dongle::ERuntimeFeature::Save to save this change permanently.
xCamera | The camera. |
|
static |
Creates a new calibration and assigns it to the given camera (defined by type and serial).
Requires Dongle::ERuntimeFeature::Save to save this change permanently.
sxCamType | The camera type. This is 'TypeA' for type A cameras. |
sxCamSerial | The camera serial. |
|
static |
Creates a new calibration and assigns it to the given camera (defined by hardware ID).
Requires Dongle::ERuntimeFeature::Save to save this change permanently.
sxCamHardwareID | The camera hardware ID. This is 'TypeA_012' for type A cameras with serial 012. |
|
static |
Creates a calibration database for the given camera.
Requires Dongle::ERuntimeFeature::Master.
xCamera | The camera. |
bForce | True to enforce the creation even if the calibration already exists. Otherwise an exception is thrown. |
|
static |
Creates a calibration database for the given camera (defined by type and serial).
Requires Dongle::ERuntimeFeature::Master.
sxCamType | The camera type. This is 'TypeA' for type A cameras. |
sxCamSerial | The camera serial. |
bForce | True to enforce the creation even if the calibration already exists. Otherwise an exception is thrown. |
|
static |
Creates a calibration database for the given camera (defined by hardware ID).
Requires Dongle::ERuntimeFeature::Master.
sxCamHardwareID | The camera hardware ID. This is 'TypeA_012' for type A cameras with serial 012. |
bForce | True to enforce the creation even if the calibration already exists. Otherwise an exception is thrown. |
|
static |
Deletes the calibration with the given GUID.
Requires Dongle::ERuntimeFeature::Save to save this change permanently.
sxGUID | The GUID of the calibration. |
|
static |
Gets an array of GUIDs from all calibrations.
asxGUIDs | [out] The GUIDs array. |
|
static |
Gets an array of GUIDs from all calibrations of the given camera.
asxGUIDs | [out] The GUIDs array. |
xCamera | The camera. |
Gets the Raytrix name of the given camera.
xCamera | The camera. |
Gets the Raytrix serial of the given camera.
xCamera | The camera. |
|
static |
Gets the GUID of the default calibration of the given camera.
The default calibration is a calibration that has been set as default by calling SetMetaData with a CRxCalibMetaData that has the IsDefaultCalib flag set to true. By default an internal master calibration is the default one.
xCamera | The camera. |
|
static |
Gets the GUID of the default calibration of the given camera defined by the camera serial and the driver name.
The default calibration is a calibration that has been set as default by calling SetMetaData with a CRxCalibMetaData that has the IsDefaultCalib flag set to true. By default an internal master calibration is the default one.
sxSerial | The serial of the camera. |
sxDriver | The driver name of the camera. |
|
inlineinherited |
Gets the non constant implementation.
|
inlineinherited |
Gets the constant implementation.
|
inherited |
Gets the interface defined by the given interface ID.
eInterface | The interface ID. |
|
static |
Gets the interface defined by ECalibrationManagerInterface.
eData | The interface type. |
|
static |
Gets the GUID of the master calibration of the given camera.
xCamera | The camera. |
|
static |
Gets the GUID of the master calibration of the given camera defined by the camera serial and the driver name.
sxSerial | [in] The serial of the camera. |
sxDriver | [in] The driver name of the camera. |
|
static |
Gets an array of GUIDs from all master calibrations. Each camera has a single master calibration.
asxGUIDs | [out] The GUIDs array. |
|
static |
Gets the calibration meta data of the given calibration.
xData | [out] The meta data. |
sxGUID | The GUID of the calibration. |
|
static |
Queries if the there is a calibration database for the given camera.
xCamera | The camera. |
|
inlineinherited |
Queries if this object has the given interface.
eInterface | The interface to query. |
|
static |
Initializes this calibration manager and reads all calibrations from disk.
You don't need to call this method. It's called automatically on the first access. But you can call it if you want to change the calibration folder or if you want to initialize this class at a certain time.
|
static |
Initializes this calibration manager and reads all calibrations from disk.
You don't need to call this method. It's called automatically on the first access. But you can call it if you want to change the calibration folder or if you want to initialize this class at a certain time.
sxFolder | The folder that holds the calibrations. If empty, the default folder is used. |
|
static |
Loads the calibration with the given GUID.
xCalib | [out] The loaded calibration. |
sxGUID | The GUID of the calibration. |
bLoadGrayImg | True to load the gray image from disk. The image is invalid if there isn't a gray image. False to keep the gray image of the given calibration. |
|
static |
Loads the default calibration of the given camera.
The default calibration is a calibration that has been set as default by calling SetMetaData with a CRxCalibMetaData that has the IsDefaultCalib flag set to true. By default an internal master calibration is the default one.
xCalib | [out] The loaded calibration. |
xCamera | The camera. |
bLoadGrayImg | True to load the gray image from disk. The image is invalid if there isn't a gray image. False to keep the gray image of the given calibration. |
|
static |
Loads the default calibration of the given camera defined by the camera serial and the driver name.
The default calibration is a calibration that has been set as default by calling SetMetaData with a CRxCalibMetaData that has the IsDefaultCalib flag set to true. By default an internal master calibration is the default one.
xCalib | [out] The loaded calibration. |
sCameraSerial | The camera serial. |
sDriverName | The driver name. |
bLoadGrayImg | True to load the gray image from disk. The image is invalid if there isn't a gray image. False to keep the gray image of the given calibration. |
|
static |
Saves the given calibration to disk.
Requires Dongle::ERuntimeFeature::Save to save this change permanently.
xCalib | The calibration. |
sxGUID | The GUID of the calibration. |
bSaveGrayImg | True to save the gray image to disk. Throws an exception if the gray image is invalid. False to keep the current gray image. |
|
static |
Sets the Raytrix name of the given camera. Requires Dongle::ERuntimeFeature::Master.
xCamera | The camera. |
sxName | The name. |
|
static |
Sets the Raytrix serial of the given camera. Requires Dongle::ERuntimeFeature::Master.
xCamera | The camera. |
sxSerial | The name. |
|
static |
Sets the calibration meta data of the given calibration. The meta data of the master calibration cannot be set.
Requires Dongle::ERuntimeFeature::Save to save this change permanently.
xData | The meta data. |
sxGUID | The GUID of the calibration. |