boofcv.abst.fiducial
Class CalibrationFiducialDetector<T extends ImageGray>
- java.lang.Object
-
- boofcv.abst.fiducial.CalibrationFiducialDetector<T>
-
- All Implemented Interfaces:
- FiducialDetector<T>
public class CalibrationFiducialDetector<T extends ImageGray> extends java.lang.Object implements FiducialDetector<T>
Wrapper which allows a calibration target to be used like a fiducial for pose estimation. The origin of the coordinate system depends on the default for the calibration target.
-
-
Constructor Summary
Constructors Constructor and Description CalibrationFiducialDetector(ConfigChessboard config, java.lang.Class<T> imageType)Configure it to detect chessboard style targetsCalibrationFiducialDetector(ConfigSquareGridBinary config, java.lang.Class<T> imageType)Configure it to detect square-grid style targetsCalibrationFiducialDetector(ConfigSquareGrid config, java.lang.Class<T> imageType)Configure it to detect square-grid style targets
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleancomputeStability(int which, double disturbance, FiducialStability results)Estimates the stability by perturbing each land mark by the specified number of pixels in the distorted image.voiddetect(T input)Call to detect the fiducial inside the image.java.util.List<Point2D_F64>getCalibrationPoints()CalibrationDetectorgetDetector()voidgetFiducialToCamera(int which, Se3_F64 fiducialToCamera)Used to retrieve the transformation from the fiducial's reference frame to the camera's reference frame.longgetId(int which)If applicable, returns the ID of the fiducial found.ImageType<T>getInputType()Type of input imagedoublegetWidth(int which)Returns the width of the fiducial in world units.booleanisSizeKnown()Does the fiducial have a known size? If the size is known thenFiducialDetector.getWidth(int)returns a meaningful number and the location can be fully resolved.booleanisSupportedID()If true then the ID number feature is supportedbooleanisSupportedPose()If true then the pose estimate is supportedvoidsetIntrinsic(IntrinsicParameters intrinsic)Specifies the intrinsic camera parameters.inttotalFound()The total number of targets found
-
-
-
Constructor Detail
-
CalibrationFiducialDetector
public CalibrationFiducialDetector(ConfigChessboard config, java.lang.Class<T> imageType)
Configure it to detect chessboard style targets
-
CalibrationFiducialDetector
public CalibrationFiducialDetector(ConfigSquareGrid config, java.lang.Class<T> imageType)
Configure it to detect square-grid style targets
-
CalibrationFiducialDetector
public CalibrationFiducialDetector(ConfigSquareGridBinary config, java.lang.Class<T> imageType)
Configure it to detect square-grid style targets
-
-
Method Detail
-
detect
public void detect(T input)
Description copied from interface:FiducialDetectorCall to detect the fiducial inside the image. Must callFiducialDetector.setIntrinsic(boofcv.struct.calib.IntrinsicParameters)first.- Specified by:
detectin interfaceFiducialDetector<T extends ImageGray>- Parameters:
input- Input image. Not modified.
-
computeStability
public boolean computeStability(int which, double disturbance, FiducialStability results)Estimates the stability by perturbing each land mark by the specified number of pixels in the distorted image.- Specified by:
computeStabilityin interfaceFiducialDetector<T extends ImageGray>- Parameters:
which- Index of which fiducial the stability is being requested fromdisturbance- Amount of the applied disturbance, in pixels. Try 0.25results- (output) Storage for stability metrics.- Returns:
- true if successful or false if it failed for some reason
-
setIntrinsic
public void setIntrinsic(IntrinsicParameters intrinsic)
Description copied from interface:FiducialDetectorSpecifies the intrinsic camera parameters. Allows for the euclidean geometry of be extracted from a single image- Specified by:
setIntrinsicin interfaceFiducialDetector<T extends ImageGray>- Parameters:
intrinsic- The camera's intrinsic parmeters
-
totalFound
public int totalFound()
Description copied from interface:FiducialDetectorThe total number of targets found- Specified by:
totalFoundin interfaceFiducialDetector<T extends ImageGray>- Returns:
- number of targets found
-
getFiducialToCamera
public void getFiducialToCamera(int which, Se3_F64 fiducialToCamera)Description copied from interface:FiducialDetectorUsed to retrieve the transformation from the fiducial's reference frame to the camera's reference frame.- Specified by:
getFiducialToCamerain interfaceFiducialDetector<T extends ImageGray>- Parameters:
which- Fiducial's indexfiducialToCamera- (output) Storage for the transform. modified.
-
getId
public long getId(int which)
Description copied from interface:FiducialDetectorIf applicable, returns the ID of the fiducial found.- Specified by:
getIdin interfaceFiducialDetector<T extends ImageGray>- Parameters:
which- Fiducial's index- Returns:
- ID of the fiducial
-
getWidth
public double getWidth(int which)
Description copied from interface:FiducialDetectorReturns the width of the fiducial in world units. If not square then it returns a reasonable approximation. Intended for use in visualization and not precise calculations.- Specified by:
getWidthin interfaceFiducialDetector<T extends ImageGray>- Parameters:
which- Fiducial's index- Returns:
- Fiducial's width.
-
getInputType
public ImageType<T> getInputType()
Description copied from interface:FiducialDetectorType of input image- Specified by:
getInputTypein interfaceFiducialDetector<T extends ImageGray>
-
isSupportedID
public boolean isSupportedID()
Description copied from interface:FiducialDetectorIf true then the ID number feature is supported- Specified by:
isSupportedIDin interfaceFiducialDetector<T extends ImageGray>- Returns:
- true if supported or false if not
-
isSupportedPose
public boolean isSupportedPose()
Description copied from interface:FiducialDetectorIf true then the pose estimate is supported- Specified by:
isSupportedPosein interfaceFiducialDetector<T extends ImageGray>- Returns:
- true if supported or false if not
-
isSizeKnown
public boolean isSizeKnown()
Description copied from interface:FiducialDetectorDoes the fiducial have a known size? If the size is known thenFiducialDetector.getWidth(int)returns a meaningful number and the location can be fully resolved.- Specified by:
isSizeKnownin interfaceFiducialDetector<T extends ImageGray>- Returns:
- true if it's size is known
-
getCalibrationPoints
public java.util.List<Point2D_F64> getCalibrationPoints()
-
getDetector
public CalibrationDetector getDetector()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG