public class CalibrationFiducialDetector<T extends boofcv.struct.image.ImageGray<T>> extends FiducialDetectorPnP<T>
| Constructor and Description |
|---|
CalibrationFiducialDetector(ConfigChessboard config,
java.lang.Class<T> imageType)
Configure it to detect chessboard style targets
|
CalibrationFiducialDetector(ConfigCircleHexagonalGrid config,
java.lang.Class<T> imageType) |
CalibrationFiducialDetector(ConfigCircleRegularGrid config,
java.lang.Class<T> imageType) |
CalibrationFiducialDetector(ConfigSquareGridBinary config,
java.lang.Class<T> imageType)
Configure it to detect square-grid style targets
|
CalibrationFiducialDetector(ConfigSquareGrid config,
java.lang.Class<T> imageType)
Configure it to detect square-grid style targets
|
| Modifier and Type | Method and Description |
|---|---|
void |
detect(T input)
Detects fiducials inside the image
|
georegression.struct.shapes.Polygon2D_F64 |
getBounds(int which,
georegression.struct.shapes.Polygon2D_F64 storage)
Used to retrieve the bounds around a marker in the image.
|
boofcv.abst.geo.calibration.DetectorFiducialCalibration |
getCalibDetector() |
java.util.List<georegression.struct.point.Point2D_F64> |
getCalibrationPoints() |
void |
getCenter(int which,
georegression.struct.point.Point2D_F64 location)
Returns the detection point average location.
|
protected java.util.List<boofcv.struct.geo.Point2D3D> |
getControl3D(int which)
3D location of control points in the fiducial reference frame
|
java.util.List<boofcv.struct.geo.PointIndex2D_F64> |
getDetectedControl(int which)
Returns a list of detected control points in the image for the specified fiducial.
|
long |
getId(int which)
If applicable, returns the ID of the fiducial found.
|
boofcv.struct.image.ImageType<T> |
getInputType()
Type of input image
|
java.lang.String |
getMessage(int which)
If applicable, returns a message associated with the fiducial.
|
java.util.List<boofcv.struct.geo.Point2D3D> |
getPoints2D3D() |
double |
getWidth(int which)
Returns the width of the fiducial in world units.
|
boolean |
hasMessage()
If true then
FiducialDetector.getMessage(int) returns a valid message |
boolean |
hasUniqueID()
If true then
FiducialDetector.getId(int) returns a valid unique number |
protected void |
init(boofcv.abst.geo.calibration.DetectorFiducialCalibration detector,
double width,
java.lang.Class<T> imageType) |
protected void |
selectBoundaryCorners()
Selects points which will be the corners in the boundary.
|
int |
totalFound()
The total number of fiducial found
|
computeStability, estimatePose, getFiducialToCamera, getLensDistortion, is3D, setLensDistortionpublic CalibrationFiducialDetector(ConfigChessboard config, java.lang.Class<T> imageType)
public CalibrationFiducialDetector(ConfigSquareGrid config, java.lang.Class<T> imageType)
public CalibrationFiducialDetector(ConfigSquareGridBinary config, java.lang.Class<T> imageType)
public CalibrationFiducialDetector(ConfigCircleHexagonalGrid config, java.lang.Class<T> imageType)
public CalibrationFiducialDetector(ConfigCircleRegularGrid config, java.lang.Class<T> imageType)
protected void init(boofcv.abst.geo.calibration.DetectorFiducialCalibration detector,
double width,
java.lang.Class<T> imageType)
protected void selectBoundaryCorners()
public void detect(T input)
FiducialDetectorinput - Input image. Not modified.public void getCenter(int which,
georegression.struct.point.Point2D_F64 location)
which - Fiducial's indexlocation - (output) Storage for the transform. modified.public georegression.struct.shapes.Polygon2D_F64 getBounds(int which,
@Nullable
georegression.struct.shapes.Polygon2D_F64 storage)
FiducialDetectorwhich - Which fiducial.storage - (Optional) Storage for markers.public int totalFound()
FiducialDetectorpublic long getId(int which)
FiducialDetectorFiducialDetector.hasUniqueID() to see if this function
returns a valid value.which - Detected fiducial's indexpublic java.lang.String getMessage(int which)
FiducialDetectorFiducialDetector.hasMessage() ()} to see if this function
returns a valid value.which - Detected fiducial's indexpublic boofcv.struct.image.ImageType<T> getInputType()
FiducialDetectorpublic java.util.List<georegression.struct.point.Point2D_F64> getCalibrationPoints()
public boofcv.abst.geo.calibration.DetectorFiducialCalibration getCalibDetector()
public java.util.List<boofcv.struct.geo.Point2D3D> getPoints2D3D()
public double getWidth(int which)
FiducialDetectorwhich - Fiducial's indexpublic boolean hasUniqueID()
FiducialDetectorFiducialDetector.getId(int) returns a valid unique numberpublic boolean hasMessage()
FiducialDetectorFiducialDetector.getMessage(int) returns a valid messagepublic java.util.List<boofcv.struct.geo.PointIndex2D_F64> getDetectedControl(int which)
FiducialDetectorPnPgetDetectedControl in class FiducialDetectorPnP<T extends boofcv.struct.image.ImageGray<T>>protected java.util.List<boofcv.struct.geo.Point2D3D> getControl3D(int which)
FiducialDetectorPnPgetControl3D in class FiducialDetectorPnP<T extends boofcv.struct.image.ImageGray<T>>