Back to FabImage Library website
You are here: Start » Function Reference » World Coordinates » CalibrateWorldCoordinates_Deprecated

CalibrateWorldCoordinates_Deprecated
Header: | FIL.h |
---|---|
Namespace: | fil |
Calculates the world plane for the given sets of corresponding 2D and 3D points.
Syntax
C++
void fil::CalibrateWorldCoordinates_Deprecated ( const ftl::Array<fil::Point2D>& inImagePoints, const ftl::Array<fil::Point3D>& inWorldPoints, float& outResolution, fil::Position3D& outWorldPlane, float& outError, ftl::Array<fil::Point2D>& outCorrectedImagePoints, ftl::Array<fil::Point3D>& outCorrectedWorldPoints )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inImagePoints | const Array<Point2D>& | ||
![]() |
inWorldPoints | const Array<Point3D>& | ||
![]() |
outResolution | float& | ||
![]() |
outWorldPlane | Position3D& | Calibrated world plane | |
![]() |
outError | float& | Average distance between provided points and points found on calibration plane | |
![]() |
outCorrectedImagePoints | Array<Point2D>& | Points projected to the found plane | |
![]() |
outCorrectedWorldPoints | Array<Point3D>& | World points found using output plane |
Hints
- Select at least four points on an image for which you know the real-world coordinates. Put these values into inImagePoints and inWorldPoints inputs.
- Use the values of outResolution and outWorldPlane outputs for transforming coordinates from image to real-world units. Use these with functions such as PointToWorldCoordinates_Deprecated.
- Please note, that this filter should not usually be executed in each iteration. It is even advisable to store its results in global parameters and disable the filter for the production system.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | At least 4 points are required in CalibrateWorldCoordinates |
DomainError | Number of points in inImagePoints and inWorldPoints must be equal in CalibrateWorldCoordinates |