public class DetectSquareCalibrationPoints
extends java.lang.Object
Detects square grid calibration targets from binary images. The output is a set of ordered calibration points with the number of rows and columns. Calibration points are in a row-major ordering. Processing steps:
| Constructor and Description |
|---|
DetectSquareCalibrationPoints(double relativeSizeThreshold,
double spaceToSquareRatio,
int gridCols,
int gridRows) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<QuadBlob> |
getAllSquares() |
boofcv.struct.image.ImageSInt32 |
getBlobs() |
DetectQuadBlobsBinary |
getDetectBlobs() |
java.lang.String |
getErrorMessage() |
java.util.List<georegression.struct.point.Point2D_F64> |
getInterestPoints() |
java.util.List<QuadBlob> |
getInterestSquares() |
int |
getNumberOfLabels() |
java.util.List<QuadBlob> |
getSquaresBad() |
java.util.List<georegression.struct.point.Point2D_F64> |
getTargetQuadrilateral()
Returns corner points in quadrilateral that bounds all the target points, approximately.
|
boolean |
process(boofcv.struct.image.ImageUInt8 thresholded)
Processes the image and detects calibration targets.
|
public DetectSquareCalibrationPoints(double relativeSizeThreshold,
double spaceToSquareRatio,
int gridCols,
int gridRows)
relativeSizeThreshold - Increases or decreases the minimum allowed blob size. Try 1.0spaceToSquareRatio - length of the space relative to the length of a square in the gridgridCols - Number of squares wide the grid is. Target dependent.gridRows - Number of squares tall the grid is. Target dependent.public boolean process(boofcv.struct.image.ImageUInt8 thresholded)
thresholded - Binary image where potential grid squares are set to one.public java.util.List<georegression.struct.point.Point2D_F64> getTargetQuadrilateral()
public boofcv.struct.image.ImageSInt32 getBlobs()
public java.lang.String getErrorMessage()
public java.util.List<QuadBlob> getAllSquares()
public java.util.List<QuadBlob> getInterestSquares()
public java.util.List<georegression.struct.point.Point2D_F64> getInterestPoints()
public java.util.List<QuadBlob> getSquaresBad()
public int getNumberOfLabels()
public DetectQuadBlobsBinary getDetectBlobs()