Methods to perform a camera calibration. More...
Functions | |
static System::Void | Rx::Net::ApiLF::RxGetGridData (array< System::Double >^%aLensData, System::Double% dLensRadius, System::UInt32 uLensType) |
Get the lens center positions of given type in pixel coordinates. The corresponding lensRadius is returned. More... | |
static System::Boolean | Rx::Net::ApiLF::RxGridCalib () |
Calibrate the micro lens image grid using white image from bound image. More... | |
static System::Boolean | Rx::Net::ApiLF::RxGridCalibParallelLight () |
Calibrate the MLA properties using a parallel light image. Calibration has to be augmented by a white-image calibration to be valid. More... | |
static System::Void | Rx::Net::ApiLF::RxGridCalibRegisterCallbackFunction (System::Boolean bActivate) |
Enables/Disables progress callback of Rx::Net::ApiLF::RxGridCalib / Rx::Net::ApiLF::RxGridCalibParallelLight. More... | |
static System::Void | Rx::Net::ApiLF::RxMetricCalibAddBoundImage (System::UInt32 &uObjectId) |
Add the currently bound image to metric calibration. More... | |
static System::Void | Rx::Net::ApiLF::RxMetricCalibAddBoundImage (System::UInt32% uObjectId) |
Add the currently bound image to metric calibration. More... | |
static System::Void | Rx::Net::ApiLF::RxMetricCalibApplyCalibrationToBoundImage () |
Apply the computed metric calibration to a newly bound image. More... | |
static System::Void | Rx::Net::ApiLF::RxMetricCalibEvaluatePointSpaceCoverage (array< System::Double >^%adAreaCovered) |
Evaluate the metric calibration data set. More... | |
static System::Void | Rx::Net::ApiLF::RxMetricCalibExecute (Rx::Net::ApiLF::EMetricCalibResult eResult, System::Boolean bCalibrateAfterInit) |
Performs the metric calibration. More... | |
static System::Void | Rx::Net::ApiLF::RxMetricCalibFinalize () |
Clears the metric calibration. More... | |
static System::Void | Rx::Net::ApiLF::RxMetricCalibFindPoints (Rx::Net::Image^ %xImage, array< System::Double, 2 >^%amatPointEllipses) |
Raytrix metric calib transform bound image to point model. More... | |
static System::Void | Rx::Net::ApiLF::RxMetricCalibGetAddImageResult (System::UInt32 uObjectId, Rx::Net::MetricCalibAddImageResult^ %AddObjectResult) |
Get result to an object id. More... | |
static System::Void | Rx::Net::ApiLF::RxMetricCalibGetAllObjectIds (array< System::UInt32 >^%auObjectIds) |
Get all valid object ids from the metric calibration. More... | |
static System::Void | Rx::Net::ApiLF::RxMetricCalibGetModelsList (array< System::Double, 2 >^%amatModelsList) |
Get the list of all models extracted from the added image. More... | |
static System::Void | Rx::Net::ApiLF::RxMetricCalibGetPointEllipses (System::UInt32 uId, Rx::Net::ApiLF::EMetricCalibPointFilter ePointFilter, Rx::Net::ImageFormat^ xTargetImageFormat, array< System::Double, 2 >^%matPointEllipses) |
Get the list of specific point ellipses. More... | |
static System::Void | Rx::Net::ApiLF::RxMetricCalibGetPoints (System::UInt32 uId, Rx::Net::ApiLF::EMetricCalibPointFilter ePointFilter, Rx::Net::ApiLF::EMetricCalibPointType ePointType, array< System::Double, 2 >^%amatPoints) |
Get specific points from the models. More... | |
static System::Void | Rx::Net::ApiLF::RxMetricCalibGetRefocusedImage (System::UInt32 uObjectId, Rx::Net::Image^ %xImage) |
Get the refocused image from the metric calibration. More... | |
static System::Void | Rx::Net::ApiLF::RxMetricCalibGetResult (Rx::Net::MetricCalibResult^ %MetricCalibResult) |
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 System::Void | Rx::Net::ApiLF::RxMetricCalibInitialize () |
Initialize metric calibration. More... | |
static System::Void | Rx::Net::ApiLF::RxMetricCalibLoadCalibration (System::String^ sFilename) |
Load a '.rxcalib' file from file system, containing a calibrated system. More... | |
static System::Void | Rx::Net::ApiLF::RxMetricCalibLoadPlanarModelData (System::String^ sFilename, array< System::UInt32 >^%auObjectIds) |
Load planar model data. More... | |
static System::Void | Rx::Net::ApiLF::RxMetricCalibProjectPointsIntoObjectSpace (array< System::Double, 2 >^%amatPoints, Rx::Net::Image^ %xDepthImage, array< System::Double, 2 >^%amatPoints3D) |
Receive metric calib projection points into object space. More... | |
static System::Void | Rx::Net::ApiLF::RxMetricCalibRegisterCallbackFunctionWithMessageHandler (System::Boolean bRegister) |
Registers the callback function of the metric calibration to the api message handler. More... | |
static System::Void | Rx::Net::ApiLF::RxMetricCalibRemoveModelFromCalibrationSet (const System::UInt32 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(const unsigned, Rx::CRxMetricCalibAddImageResult);. More... | |
static System::Void | Rx::Net::ApiLF::RxMetricCalibResetToNominal () |
Reset the metric calibration to nominal values. More... | |
static System::Void | Rx::Net::ApiLF::RxMetricCalibSaveCalibration (System::String^ sFilename) |
Save the converged calibration result. More... | |
static System::Void | Rx::Net::ApiLF::RxMetricCalibSavePlanarModelData (System::String^ sFilename) |
Save planar model to filesystem. More... | |
Methods to perform a camera calibration.
|
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 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.
|
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::RxGridCalib / Rx::Net::ApiLF::RxGridCalibParallelLight.
Standard interface is used.
bActivate | Set to 'true' to activate callback interface for progress information. |
|
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 |
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 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] | MetricCalibResult | The metric calib result. |
|
static |
Initialize metric 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(const 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. |