Provides methods for managing camera calibrations. This includes creating, loading and saving.
Static Public Member Functions | |
static System::String^ | CreateCalibration (Camera^ xCamera) |
Creates a new calibration and assigns it to the given camera. More... | |
static System::String^ | CreateCalibration (System::String^ sCamType, System::String^ sCamSerial) |
Creates a new calibration and assigns it to the given camera (defined by type and serial). More... | |
static System::String^ | CreateCalibration (System::String^ sCamHardwareID) |
Creates a new calibration and assigns it to the given camera (defined by hardware ID). More... | |
static void | CreateDatabase (Camera^ xCamera, bool bForce) |
Creates a calibration database for the given camera. More... | |
static void | CreateDatabase (System::String^ sCamType, System::String^ sCamSerial, bool bForce) |
Creates a calibration database for the given camera (defined by type and serial). More... | |
static void | CreateDatabase (System::String^ sCamHardwareID, bool bForce) |
Creates a calibration database for the given camera (defined by hardware ID). More... | |
static void | DeleteCalibration (System::String^ sGUID) |
Deletes the calibration with the given GUID. More... | |
static void | GetCalibrationGUIDs (RX_OUT array< System::String^ >^%asGUIDs) |
Gets an array of GUIDs from all calibrations. More... | |
static void | GetCalibrationGUIDs (RX_OUT array< System::String^ >^%asGUIDs, Camera^ xCamera) |
Gets an array of GUIDs from all calibrations of the given camera. More... | |
static System::String^ | GetCameraName (Camera^ xCamera) |
Gets the Raytrix name of the given camera. More... | |
static System::String^ | GetCameraSerial (Camera^ xCamera) |
Gets the Raytrix serial of the given camera. More... | |
static System::String^ | GetDefaultCalibrationGUID (Camera^ xCamera) |
Gets the GUID of the default calibration of the given camera. More... | |
static System::String^ | GetDefaultCalibrationGUID (System::String^ sSerial, System::String^ sDriver) |
Gets the GUID of the default calibration of the given camera defined by the camera serial and the driver name. More... | |
static System::Object^ | GetInterface (Interfaces::ECalibManager eData) |
Gets the interface defined by ELightFieldRuntimeInterface. More... | |
static System::String^ | GetMasterCalibrationGUID (Camera^ xCamera) |
Gets the GUID of the master calibration of the given camera. More... | |
static System::String^ | GetMasterCalibrationGUID (System::String^ sSerial, System::String^ sDriver) |
Gets the GUID of the master calibration of the given camera defined by the camera serial and the driver name. More... | |
static void | GetMasterCalibrationGUIDs (RX_OUT array< System::String^ >^%asGUIDs) |
Gets an array of GUIDs from all master calibrations. Each camera has a single master calibration. More... | |
static void | GetMetaData (RX_OUT Rx::Net::CalibMetaData^ %xData, System::String^ sGUID) |
Gets the calibration meta data of the given calibration. More... | |
static bool | HasDatabase (Camera^ xCamera) |
Queries if 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 (System::String^ sFolder) |
Initializes this calibration manager and reads all calibrations from disk. More... | |
static void | LoadCalibration (Calibration^ xCalib, System::String^ sGUID, bool bLoadGrayImg) |
Loads the calibration with the given GUID. More... | |
static void | LoadDefaultCalibration (Calibration^ xCalib, Camera^ xCamera, bool bLoadGrayImg) |
Loads the default calibration of the given camera. More... | |
static void | LoadDefaultCalibration (Calibration^ xCalib, System::String^ sCameraSerial, System::String^ sDriverName, bool bLoadGrayImg) |
Loads the default calibration of the given camera defined by the camera serial and the driver name. More... | |
static void | SaveCalibration (Calibration^ xCalib, System::String^ sGUID, bool bSaveGrayImg) |
Saves the given calibration to disk. More... | |
static void | SetCameraName (Camera^ xCamera, System::String^ sName) |
Sets the Raytrix name of the given camera. Requires Dongle::ERuntimeFeature::Master. More... | |
static void | SetCameraSerial (Camera^ xCamera, System::String^ sSerial) |
Sets the Raytrix serial of the given camera. Requires Dongle::ERuntimeFeature::Master. More... | |
static void | SetMetaData (Rx::Net::CalibMetaData^ xData, System::String^ sGUID) |
Sets the calibration meta data of the given calibration. The meta data of the master calibration cannot be set. More... | |
|
inlinestatic |
Creates a new calibration and assigns it to the given camera.
Requires Dongle::ERuntimeFeature::Save to save this change permanently.
xCamera | [in] The camera. |
|
inlinestatic |
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.
sCamType | [in] The camera type. This is 'TypeA' for type A cameras. |
sCamSerial | [in] The camera serial. |
|
inlinestatic |
Creates a new calibration and assigns it to the given camera (defined by hardware ID).
Requires Dongle::ERuntimeFeature::Save to save this change permanently.
sCamHardwareID | [in] The camera hardware ID. This is 'TypeA_012' for type A cameras with serial 012. |
|
inlinestatic |
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. |
|
inlinestatic |
Creates a calibration database for the given camera (defined by type and serial).
Requires Dongle::ERuntimeFeature::Master.
sCamType | [in] The camera type. This is 'TypeA' for type A cameras. |
sCamSerial | [in] The camera serial. |
bForce | True to enforce the creation even if the calibration already exists. Otherwise an exception is thrown. |
|
inlinestatic |
Creates a calibration database for the given camera (defined by hardware ID).
Requires Dongle::ERuntimeFeature::Master.
sCamHardwareID | [in] 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. |
|
inlinestatic |
Deletes the calibration with the given GUID.
Requires Dongle::ERuntimeFeature::Save to save this change permanently.
sGUID | [in] The GUID of the calibration. |
|
inlinestatic |
Gets an array of GUIDs from all calibrations.
asGUIDs | [out] The GUIDs array. |
|
inlinestatic |
Gets an array of GUIDs from all calibrations of the given camera.
asGUIDs | [out] The GUIDs array. |
xCamera | [in] The camera. |
|
inlinestatic |
Gets the Raytrix name of the given camera.
xCamera | [in] The camera. |
|
inlinestatic |
Gets the Raytrix serial of the given camera.
xCamera | [in] The camera. |
|
inlinestatic |
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 CalibMetaData that has the IsDefaultCalib flag set to true. By default an internal master calibration is the default one.
xCamera | [in] The camera. |
|
inlinestatic |
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 CalibMetaData that has the IsDefaultCalib flag set to true. By default an internal master calibration is the default one.
sSerial | [in] The serial of the camera. |
sDriver | [in] The driver name of the camera. |
|
inlinestatic |
Gets the interface defined by ELightFieldRuntimeInterface.
eData | The interface type. |
|
inlinestatic |
Gets the GUID of the master calibration of the given camera.
xCamera | [in] The camera. |
|
inlinestatic |
Gets the GUID of the master calibration of the given camera defined by the camera serial and the driver name.
sSerial | [in] The serial of the camera. |
sDriver | [in] The driver name of the camera. |
|
inlinestatic |
Gets an array of GUIDs from all master calibrations. Each camera has a single master calibration.
asGUIDs | [out] The GUIDs array. |
|
inlinestatic |
Gets the calibration meta data of the given calibration.
xData | [out] The meta data. |
sGUID | [in] The GUID of the calibration. |
|
inlinestatic |
Queries if there is a calibration database for the given camera.
xCamera | The camera. |
|
inlinestatic |
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.
|
inlinestatic |
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.
sFolder | [in] The folder that holds the calibrations. If empty, the default folder is used. |
|
inlinestatic |
Loads the calibration with the given GUID.
xCalib | [out] The loaded calibration. |
sGUID | [in] 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. |
|
inlinestatic |
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 CalibMetaData that has the IsDefaultCalib flag set to true. By default an internal master calibration is the default one.
xCalib | [out] The loaded calibration. |
xCamera | [in] 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. |
|
inlinestatic |
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 CalibMetaData that has the IsDefaultCalib flag set to true. By default an internal master calibration is the default one.
xCalib | [out] The loaded calibration. |
sCameraSerial | [in] The camera serial. |
sDriverName | [in] 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. |
|
inlinestatic |
Saves the given calibration to disk.
Requires Dongle::ERuntimeFeature::Save to save this change permanently.
xCalib | [in] The calibration. |
sGUID | [in] 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. |
|
inlinestatic |
Sets the Raytrix name of the given camera. Requires Dongle::ERuntimeFeature::Master.
xCamera | [in] The camera. |
sName | [in] The name. |
|
inlinestatic |
Sets the Raytrix serial of the given camera. Requires Dongle::ERuntimeFeature::Master.
xCamera | [in] The camera. |
sSerial | [in] The name. |
|
inlinestatic |
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 | [in] The meta data. |
sGUID | [in] The GUID of the calibration. |