|
static Point2Dd[] | CalculateTwoPointsForCalibrationOfMovement (ImagePlane imagePlane, Area2D aoi, CalibrationPatternContrast contrast, int minContrast, ValueRange< double > pointSizeRange, ScanDirection scanDirection) |
| Extracts two points which can be used for the calibration of the movement of line scan cameras. More...
|
|
static EdgeDetectionResult | DetectEdgesOfStripeTarget (Image imageStripes, Area2D aoi, int numStripes, ScanDirection scanDirection, double threshold) |
| This function detects edges from a calibration pattern with alternating black and white stripes. More...
|
|
static LineScanCalibrator | CreateLineScanCalibration (Point2Dd calibrationPoint1, Point2Dd calibrationPoint2, double referenceDistanceCalibrationPoints, EdgeDetectionResult edgeDetectionResult, double referenceWidthStripes, LineScanCalibrationConfiguration configuration) |
| This function calibrates linescan cameras. More...
|
|
Collection of calibration line scan functions.
This function calibrates linescan cameras.
The Transformation result includes a 3rd order polynom 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(ImagePlane, Area2D, CalibrationPatternContrast, int, ValueRange<double>, ScanDirection). CreateLineScanCalibration needs the coordinates and the reference distance between the dots referenceDistanceCalibrationPoints .
For the linescan calibration an image of a pattern with alternating black and white stripes has to be aquired. Also, the width of the stripes referenceWidthStripes has to be given as reference. Function DetectEdgesOfStripeTarget(Image, Area2D, int, ScanDirection, double) detects the stripes of the calibration pattern and gives their indices ScanLineIndices and EdgeIndices in edgeDetectionResult .
- Parameters
-
calibrationPoint1 | First calibration point (left or top). |
calibrationPoint2 | Second calibration point (right or bottom). |
referenceDistanceCalibrationPoints | Reference distance between the two calibration points (same units as referenceWidthStripes ). |
edgeDetectionResult | Containing the ScanLineIndices and EdgeIndices. |
referenceWidthStripes | Reference width of stripes in calibration pattern ImageStripes. |
configuration | Configuration of the linescan calibration. |
- Returns
- A line scan calibrator including a transformation and its quality.