Package boofcv.abst.fiducial.calib
Class CalibrationDetectorChessboardBinary
java.lang.Object
boofcv.abst.fiducial.calib.CalibrationDetectorChessboardBinary
- All Implemented Interfaces:
DetectSingleFiducialCalibration
public class CalibrationDetectorChessboardBinary
extends Object
implements DetectSingleFiducialCalibration
Wrapper around
DetectChessboardBinaryPattern
for DetectSingleFiducialCalibration
-
Constructor Summary
ConstructorDescriptionCalibrationDetectorChessboardBinary
(ConfigChessboardBinary configDet, ConfigGridDimen configGrid) -
Method Summary
Modifier and TypeMethodDescriptionReturns the set of detected points from the most recent call toDetectSingleFiducialCalibration.process(GrayF32)
.int
Returns number of columns in the chessboard gridint
Returns number of rows in the chessboard gridReturns the layout of the calibration points on the targetstatic List<Point2D_F64>
gridChess
(int numRows, int numCols, double squareWidth) This target is composed of a checkered chess board like squares.boolean
Image processing for calibration target detectionvoid
setLensDistortion
(@Nullable LensDistortionNarrowFOV distortion, int width, int height) Explicitly handles lens distortion when detecting image features.
-
Constructor Details
-
CalibrationDetectorChessboardBinary
public CalibrationDetectorChessboardBinary(ConfigChessboardBinary configDet, ConfigGridDimen configGrid)
-
-
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
-
getGridRows
public int getGridRows()Returns number of rows in the chessboard grid- Returns:
- number of rows
-
getGridColumns
public int getGridColumns()Returns number of columns in the chessboard grid- Returns:
- number of columns
-
getAlgorithm
-
gridChess
This target is composed of a checkered chess board like squares. Each corner of an interior square touches an adjacent square, but the sides are separated. Only interior square corners provide calibration points.- Parameters:
numRows
- Number of grid rows in the calibration targetnumCols
- Number of grid columns in the calibration targetsquareWidth
- How wide each square is. Units are target dependent.- Returns:
- Target description
-