boofcv.abst.fiducial.calib
Class CalibrationDetectorSquareGrid
- java.lang.Object
-
- boofcv.abst.fiducial.calib.CalibrationDetectorSquareGrid
-
- All Implemented Interfaces:
- CalibrationDetector
public class CalibrationDetectorSquareGrid extends java.lang.Object implements CalibrationDetector
Implementation ofCalibrationDetectorfor square grid target types.
-
-
Constructor Summary
Constructors Constructor and Description CalibrationDetectorSquareGrid(ConfigSquareGrid config)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static java.util.List<Point2D_F64>createLayout(int numRows, int numCols, double squareWidth, double spaceWidth)Creates a target that is composed of squares.DetectSquareGridFiducial<GrayF32>getAlgorithm()CalibrationObservationgetDetectedPoints()Returns the set of detected points from the most recent call toCalibrationDetector.process(GrayF32).intgetGridColumns()Returns number of columns in the gridintgetGridRows()Returns number of rows in the gridjava.util.List<Point2D_F64>getLayout()Returns the layout of the calibration points on the targetintgetPointColumns()Returns number of columns in calibration point gridintgetPointRows()Returns number of rows in calibration point gridbooleanprocess(GrayF32 input)Image processing for calibration target detection
-
-
-
Constructor Detail
-
CalibrationDetectorSquareGrid
public CalibrationDetectorSquareGrid(ConfigSquareGrid config)
-
-
Method Detail
-
process
public boolean process(GrayF32 input)
Description copied from interface:CalibrationDetectorImage processing for calibration target detection- Specified by:
processin interfaceCalibrationDetector- Parameters:
input- Gray scale image containing calibration target- Returns:
- true if target was detected and false if not
-
createLayout
public static java.util.List<Point2D_F64> createLayout(int numRows, int numCols, double squareWidth, double spaceWidth)
Creates a target that is composed of squares. The squares are spaced out and each corner provides a calibration point.- Parameters:
numRows- Number of rows in calibration target. Must be odd.numCols- Number of column in each calibration target. Must be odd.squareWidth- How wide each square is. Units are target dependent.spaceWidth- Distance between the sides on each square. Units are target dependent.- Returns:
- Target description
-
getDetectedPoints
public CalibrationObservation getDetectedPoints()
Description copied from interface:CalibrationDetectorReturns the set of detected points from the most recent call toCalibrationDetector.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 interfaceCalibrationDetector- Returns:
- List of detected points in row major grid order.
-
getLayout
public java.util.List<Point2D_F64> getLayout()
Description copied from interface:CalibrationDetectorReturns the layout of the calibration points on the target- Specified by:
getLayoutin interfaceCalibrationDetector- Returns:
- List of calibration points
-
getAlgorithm
public DetectSquareGridFiducial<GrayF32> getAlgorithm()
-
getGridRows
public int getGridRows()
Returns number of rows in the grid- Returns:
- number of rows
-
getGridColumns
public int getGridColumns()
Returns number of columns in the grid- Returns:
- number of columns
-
getPointRows
public int getPointRows()
Returns number of rows in calibration point grid- Returns:
- number of rows
-
getPointColumns
public int getPointColumns()
Returns number of columns in calibration point grid- Returns:
- number of columns
-
-
DataMelt 3.0 © DataMelt by jWork.ORG