Methods to perform a camera calibration. More...
Functions | |
static void | Rx::Net::ApiLF::RxMetricCalibAddBoundImage ([Out] unsigned% uObjectId) |
Add the currently bound image to metric calibration. More... | |
static void | Rx::Net::ApiLF::RxMetricCalibApplyCalibrationToBoundImage () |
Apply the computed metric calibration to a newly bound image. More... | |
static void | Rx::Net::ApiLF::RxMetricCalibEvaluatePointSpaceCoverage ([Out] array< double >^%adAreaCovered) |
Evaluate the metric calibration data set. More... | |
static void | Rx::Net::ApiLF::RxMetricCalibExecute (Rx::Net::ApiLF::EMetricCalibResult eResult, bool bCalibrateAfterInit) |
Performs the metric calibration. More... | |
static void | Rx::Net::ApiLF::RxMetricCalibFinalize () |
Clears the metric calibration. More... | |
static void | Rx::Net::ApiLF::RxMetricCalibFindPoints (Rx::Net::Image^ xImage, [Out] array< double, 2 >^%amatPointEllipses) |
Raytrix metric calib transform bound image to point model. More... | |
static void | Rx::Net::ApiLF::RxMetricCalibGetAddImageResult (unsigned uObjectId, [Out] Rx::Net::MetricCalibAddImageResult^ %AddObjectResult) |
Get result to an object id. More... | |
static void | Rx::Net::ApiLF::RxMetricCalibGetAllObjectIds ([Out] array< unsigned >^%auObjectIds) |
Get all valid object ids from the metric calibration. More... | |
static void | Rx::Net::ApiLF::RxMetricCalibGetModelsList ([Out] array< double, 2 >^%amatModelsList) |
Get the list of all models extracted from the added image. More... | |
static void | Rx::Net::ApiLF::RxMetricCalibGetPointConnections (unsigned uId, Rx::Net::ApiLF::EMetricCalibPointType ePointType, [Out] array< double, 2 >^%amatLines) |
Get All point connections. More... | |
static void | Rx::Net::ApiLF::RxMetricCalibGetPointEllipses (unsigned uId, Rx::Net::ApiLF::EMetricCalibPointFilter ePointFilter, Rx::Net::ImageFormat^ xTargetImageFormat, [Out] array< double, 2 >^%matPointEllipses) |
Get the list of specific point ellipses. More... | |
static void | Rx::Net::ApiLF::RxMetricCalibGetPoints (unsigned uId, Rx::Net::ApiLF::EMetricCalibPointFilter ePointFilter, Rx::Net::ApiLF::EMetricCalibPointType ePointType, [Out] array< double, 2 >^%amatPoints) |
Get specific points from the models. More... | |
static void | Rx::Net::ApiLF::RxMetricCalibGetRefocusedImage (unsigned uObjectId, Rx::Net::Image^ xImage) |
Get the refocused image from the metric calibration. More... | |
static void | Rx::Net::ApiLF::RxMetricCalibGetResult ([Out] Rx::Net::MetricCalibResult^ %xMetricCalibResult) |
Evaluated the calibration result. That is, the error function of the calibration is executed once with the current parameter settings and mean residual, mean euclidean distance, min euclidean distance, max euclidean distance and the standard deviation. Note that this function also projects all test points of all test models to object space. More... | |
static void | Rx::Net::ApiLF::RxMetricCalibInitialize (Rx::Net::ApiLF::EMetricCalibrationType eCalibrationType) |
Initialize metric calibration. More... | |
static void | Rx::Net::ApiLF::RxMetricCalibLoadCalibration (System::String^ sFilename) |
Load a '.rxcalib' file from file system, containing a calibrated system. More... | |
static void | Rx::Net::ApiLF::RxMetricCalibLoadPlanarModelData (System::String^ sFilename, [Out] array< unsigned >^%auObjectIds) |
Load planar model data. More... | |
static void | Rx::Net::ApiLF::RxMetricCalibProjectPointsIntoObjectSpace (array< double, 2 >^amatPoints, Rx::Net::Image^ xDepthImage, [Out] array< double, 2 >^%amatPoints3D) |
Receive metric calib projection points into object space. More... | |
static void | Rx::Net::ApiLF::RxMetricCalibRegisterCallbackFunctionWithMessageHandler (bool bRegister) |
Registers the callback function of the metric calibration to the api message handler. More... | |
static void | Rx::Net::ApiLF::RxMetricCalibRemoveModelFromCalibrationSet (unsigned nObjectId) |
Removes the models of the object given by its object id from the calibration set. Changes the result information related to this object id. You can receive the information of an object by calling Rx::Net::ApiLF::RxMetricCalibGetAddImageResult(unsigned, Rx::CRxMetricCalibAddImageResult);. More... | |
static void | Rx::Net::ApiLF::RxMetricCalibResetToNominal () |
Reset the metric calibration to nominal values. More... | |
static void | Rx::Net::ApiLF::RxMetricCalibSaveCalibration (System::String^ sFilename) |
Save the converged calibration result. More... | |
static void | Rx::Net::ApiLF::RxMetricCalibSavePlanarModelData (System::String^ sFilename) |
Save planar model to filesystem. More... | |
static void | Rx::Net::ApiLF::RxMlaCalibExecute ([Out] Rx::Net::ApiLF::EMlaCalibResult% eResult, bool bIgnoreImageQuality) |
Calibrate the micro lens image grid using white image from bound image. More... | |
static void | Rx::Net::ApiLF::RxMlaCalibGetGridData ([Out] array< double >^%aLensData, [Out] double% dLensRadius, unsigned uLensType) |
Get the lens center positions of given type in pixel coordinates. The corresponding lensRadius is returned. More... | |
static bool | Rx::Net::ApiLF::RxMlaCalibParallelLightExecute () |
Calibrate the MLA properties using a parallel light image. Calibration has to be augmented by a white-image calibration to be valid. More... | |
static void | Rx::Net::ApiLF::RxMlaCalibRegisterCallbackFunction (bool bActivate) |
Enables/Disables progress callback of Rx::Net::ApiLF::RxMlaCalibExecute / Rx::Net::ApiLF::RxMlaCalibParallelLightExecute. More... | |
Methods to perform a camera calibration.
|
static |
Add the currently bound image to metric calibration.
The currently bound image is added to extract all planar models found in this image. Thereafter all test models are created from all extracted planar models. Afterwards the Test models are filtered for optimization reasons. The ID of the newly created object is returned in nObjectId
[out] | uObjectId | The Id of the newly created object. |
|
static |
Apply the computed metric calibration to a newly bound image.
|
static |
Evaluate the metric calibration data set.
[out] | adAreaCovered | A vector containing the number of points in each area. The scene is divided into 12 parts and is sorted as follows:
|
|
static |
Performs the metric calibration.
eResult | The result. |
bCalibrateAfterInit | Indicates whether the actual calibration should be performed after the first initial iteration. If not this function performs only the first iteration which includes the initial error evaluation. This can be used to display the point situation before calibration. |
|
static |
Clears the metric calibration.
|
static |
Raytrix metric calib transform bound image to point model.
[in] | xImage | The refocused image. |
[out] | amatPointEllipses | The mat points 2D. |
|
static |
Get result to an object id.
uObjectId | Identifier for the object. | |
[out] | AddObjectResult | The metric calibration add object result. |
|
static |
Get all valid object ids from the metric calibration.
[in] | auObjectIds | List of identifiers for the objects. |
|
static |
Get the list of all models extracted from the added image.
[out] | amatModelsList | Array of the models (planar models, test models). The first element in the array (0,0) (0, 1) represents the count of the respective model type. |
|
static |
Get All point connections.
uId | The identifier. | |
[in,out] | amatLines | [in,out] An array of all connected points |
|
static |
Get the list of specific point ellipses.
uId | The identifier of the test model. | |
ePointFilter | A filter specifying the point. | |
[in,out] | xTargetImageFormat | target image format. |
[out] | matPointEllipses | The array of point ellipses. |
|
static |
Get specific points from the models.
uId | The identifier of the model. | |
ePointFilter | A filter specifying the point. | |
ePointType | Type of the point. | |
[out] | amatPoints | An array of all points (x,y,z). |
|
static |
Get the refocused image from the metric calibration.
uObjectId | Identifier for the object. | |
[out] | xImage | The image. |
|
static |
Evaluated the calibration result. That is, the error function of the calibration is executed once with the current parameter settings and mean residual, mean euclidean distance, min euclidean distance, max euclidean distance and the standard deviation. Note that this function also projects all test points of all test models to object space.
[out] | xMetricCalibResult | The metric calib result. |
|
static |
Initialize metric calibration.
eCalibrationType | Type of the calibration. |
|
static |
Load a '.rxcalib' file from file system, containing a calibrated system.
[in] | sFilename | Filename of the calibration file. |
|
static |
Load planar model data.
[in] | sFilename | Filename of the model data. |
[in] | auObjectIds | List of identifiers for the objects. |
|
static |
Receive metric calib projection points into object space.
[in] | amatPoints | The matrix points 2D. |
[in] | xDepthImage | The depth image. |
[out] | amatPoints3D | The matrix points 3D. |
|
static |
Registers the callback function of the metric calibration to the api message handler.
bRegister | true to register. |
|
static |
Removes the models of the object given by its object id from the calibration set. Changes the result information related to this object id. You can receive the information of an object by calling Rx::Net::ApiLF::RxMetricCalibGetAddImageResult(unsigned, Rx::CRxMetricCalibAddImageResult);.
[in] | nObjectId | Identifier for the object. |
|
static |
Reset the metric calibration to nominal values.
|
static |
Save the converged calibration result.
[in] | sFilename | Filename of the calibration to save. |
|
static |
Save planar model to filesystem.
[in] | sFilename | Filename of the .calib file. |
|
static |
Calibrate the micro lens image grid using white image from bound image.
This function attempts an automatic calibration of the micro lens image parameters. If a parallel light image calibration is available for the bound image, it is augmented. Else a standard white image calibration is performed.
Rx::Net::ApiLF::EPar::MlaImg_CalibType
. The available calibration modes are Rx::Net::ApiLF::ECalibGridMode::Full
(including distortion models), Rx::Net::ApiLF::ECalibGridMode::Reduced
(omitting distortions) and Rx::Net::ApiLF::ECalibGridMode::Plain
(without homography).This function reports on its progress using the set progress interface.
eResult | [out] The result. |
bIgnoreImageQuality | True to ignore image quality. |
|
static |
Get the lens center positions of given type in pixel coordinates. The corresponding lensRadius is returned.
[out] | aLensData | The result list, containing the lens centers in pixel coordinates. |
[out] | dLensRadius | The lens radius for the given Lens Type. |
uLensType | The lens type number to retrieve. |
|
static |
Calibrate the MLA properties using a parallel light image. Calibration has to be augmented by a white-image calibration to be valid.
Tries to estimate the properties of the MLA, i.e., lens pitch, MLA rotation etc..
|
static |
Enables/Disables progress callback of Rx::Net::ApiLF::RxMlaCalibExecute / Rx::Net::ApiLF::RxMlaCalibParallelLightExecute.
Standard interface is used.
bActivate | Set to 'true' to activate callback interface for progress information. |