Namespace for collection of calibration line-scan functions from the Foundation package.
More...
|
std::pair< Point2D< double >, Point2D< double > > | CalculateTwoPointsForCalibrationOfMovement (const ImagePlane &imagePlane, const Area2D &aoi, CalibrationPatternContrast contrast, int minContrast, const ValueRange< double > &pointSizeRange, const ScanDirection &scanDirection) |
| Extracts two points which can be used for the calibration of the movement of line-scan cameras. More...
|
|
EdgeDetectionResult | DetectEdgesOfStripeTarget (const Image &imageStripes, const Area2D &aoi, int numStripes, const ScanDirection &scanDirection, double threshold) |
| This function detects edges from a calibration pattern with alternating black and white stripes. More...
|
|
std::unique_ptr< LineScanCalibrator > | CreateLineScanCalibration (const Point2D< double > &calibrationPoint1, const Point2D< double > &calibrationPoint2, double referenceDistanceCalibrationPoints, const EdgeDetectionResult &edgeDetectionResult, double referenceWidthStripes, const LineScanCalibrationConfiguration &configuration) |
| Calibrates line-scan cameras. More...
|
|
Namespace for collection of calibration line-scan functions from the Foundation package.
Calibrates line-scan cameras.
- Parameters
-
[in] | calibrationPoint1 | First calibration point (left or top). |
[in] | calibrationPoint2 | Second calibration point (right or bottom). |
[in] | referenceDistanceCalibrationPoints | Reference distance between the two calibration points (same units as referenceWidthStripes). |
[in] | edgeDetectionResult | Result returned by DetectEdgesOfStripeTarget. |
[in] | referenceWidthStripes | Reference width of stripes in calibration pattern (same units as referenceDistanceCalibrationPoints). |
[in] | configuration | Configuration of line-scan calibration. |
- Returns
- A line-scan calibrator including a transformation and its quality.
The transformation result includes a 3rd order polynomial for the line calibration and a factor to correct the movement direction. Note, that x and y do not depend on each other. All mixed coefficients are zero.
For the calibration of the movement direction, an image containing two calibration dots is needed. The pixel coordinates of the dots calibrationPoint1 and calibrationPoint2 are calculated by the function CalculateTwoPointsForCalibrationOfMovement.
This function needs these coordinates and the reference distance between the dots referenceDistanceCalibrationPoints.
For the line-scan calibration, an image of a pattern with alternating black and white stripes has to be acquired. Also, the width of the stripes referenceWidthStripes has to be given as reference.