Package boofcv.abst.fiducial.calib
Class CalibrationDetectorCircleRegularGrid
java.lang.Object
boofcv.abst.fiducial.calib.CalibrationDetectorCircleRegularGrid
- All Implemented Interfaces:
DetectSingleFiducialCalibration
public class CalibrationDetectorCircleRegularGrid
extends Object
implements DetectSingleFiducialCalibration
Calibration implementation of circle regular grid fiducial.
-
Constructor Summary
ConstructorDescriptionCalibrationDetectorCircleRegularGrid
(ConfigCircleRegularGrid 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, double diameter) Specifies the physical location of each point on the 2D calibration plane.int
Returns the set of detected points from the most recent call toDetectSingleFiducialCalibration.process(GrayF32)
.Returns the layout of the calibration points on the targetint
getRows()
double
Distance between centers to circle radius ratioboolean
Image processing for calibration target detectionvoid
setLensDistortion
(@Nullable LensDistortionNarrowFOV distortion, int width, int height) Explicitly handles lens distortion when detecting image features.
-
Constructor Details
-
CalibrationDetectorCircleRegularGrid
public CalibrationDetectorCircleRegularGrid(ConfigCircleRegularGrid 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:DetectSingleFiducialCalibration
Image processing for calibration target detection- Specified by:
process
in interfaceDetectSingleFiducialCalibration
- Parameters:
input
- Gray scale image containing calibration target- Returns:
- true if target was detected and false if not
-
getDetectedPoints
Description copied from interface:DetectSingleFiducialCalibration
Returns 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:
getDetectedPoints
in interfaceDetectSingleFiducialCalibration
- Returns:
- List of detected points in row major grid order.
-
getLayout
Description copied from interface:DetectSingleFiducialCalibration
Returns the layout of the calibration points on the target- Specified by:
getLayout
in interfaceDetectSingleFiducialCalibration
- Returns:
- List of calibration points
-
setLensDistortion
public void setLensDistortion(@Nullable @Nullable LensDistortionNarrowFOV distortion, int width, int height) Description copied from interface:DetectSingleFiducialCalibration
Explicitly handles lens distortion when detecting image features. If used, features will be found in undistorted pixel coordinates- Specified by:
setLensDistortion
in interfaceDetectSingleFiducialCalibration
-
createLayout
public static List<Point2D_F64> createLayout(int numRows, int numCols, double centerDistance, double diameter) 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
-