Package boofcv.abst.fiducial.calib
Class CalibrationDetectorCircleHexagonalGrid
java.lang.Object
boofcv.abst.fiducial.calib.CalibrationDetectorCircleHexagonalGrid
- All Implemented Interfaces:
DetectSingleFiducialCalibration
public class CalibrationDetectorCircleHexagonalGrid
extends Object
implements DetectSingleFiducialCalibration
Calibration implementation of circle hexagonal grid fiducial.
-
Constructor Summary
ConstructorsConstructorDescriptionCalibrationDetectorCircleHexagonalGrid(ConfigCircleHexagonalGrid configDet, ConfigGridDimen configGrid) Configures the detector based on the pass in configuration class -
Method Summary
Modifier and TypeMethodDescriptionstatic List<Point2D_F64>createLayout(int numRows, int numCols, double centerDistance) Specifies the physical location of each point on the 2D calibration plane.intReturns the set of detected points from the most recent call toDetectSingleFiducialCalibration.process(GrayF32).Returns the layout of the calibration points on the targetintgetRows()doubleDistance between centers to circle radius ratiobooleanImage processing for calibration target detectionvoidsetLensDistortion(@Nullable LensDistortionNarrowFOV distortion, int width, int height) Explicitly handles lens distortion when detecting image features.
-
Constructor Details
-
CalibrationDetectorCircleHexagonalGrid
public CalibrationDetectorCircleHexagonalGrid(ConfigCircleHexagonalGrid configDet, ConfigGridDimen configGrid) Configures the detector based on the pass in configuration class- Parameters:
configDet- Configuration for detector and target description
-
-
Method Details
-
process
Description copied from interface:DetectSingleFiducialCalibrationImage processing for calibration target detection- Specified by:
processin interfaceDetectSingleFiducialCalibration- Parameters:
input- Gray scale image containing calibration target- Returns:
- true if target was detected and false if not
-
getDetectedPoints
Description copied from interface:DetectSingleFiducialCalibrationReturns the set of detected points from the most recent call toDetectSingleFiducialCalibration.process(GrayF32). Each time this function is invoked a new instance of the list and points is returned. No data reuse here.- Specified by:
getDetectedPointsin interfaceDetectSingleFiducialCalibration- Returns:
- List of detected points in row major grid order.
-
getLayout
Description copied from interface:DetectSingleFiducialCalibrationReturns the layout of the calibration points on the target- Specified by:
getLayoutin interfaceDetectSingleFiducialCalibration- Returns:
- List of calibration points
-
setLensDistortion
public void setLensDistortion(@Nullable @Nullable LensDistortionNarrowFOV distortion, int width, int height) Description copied from interface:DetectSingleFiducialCalibrationExplicitly handles lens distortion when detecting image features. If used, features will be found in undistorted pixel coordinates- Specified by:
setLensDistortionin interfaceDetectSingleFiducialCalibration
-
createLayout
Specifies the physical location of each point on the 2D calibration plane. The fiducial is centered on the coordinate system- Parameters:
numRows- Number of rowsnumCols- Number of columnscenterDistance- Space between each circle's center along x and y axis- Returns:
- 2D locations
-
getDetector
-
getKeypointFinder
-
getRows
public int getRows() -
getColumns
public int getColumns() -
getSpaceToDiameter
public double getSpaceToDiameter()Distance between centers to circle radius ratio
-