Documentation of 'boofcv.abst.fiducial.CalibrationFiducialDetector' Java class
CalibrationFiducialDetector
boofcv.abst.fiducial

Class CalibrationFiducialDetector<T extends ImageGray>

  • 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 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

      • 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:
        computeStability in interface FiducialDetector<T extends ImageGray>
        Parameters:
        which - Index of which fiducial the stability is being requested from
        disturbance - Amount of the applied disturbance, in pixels. Try 0.25
        results - (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: FiducialDetector
        Specifies the intrinsic camera parameters. Allows for the euclidean geometry of be extracted from a single image
        Specified by:
        setIntrinsic in interface FiducialDetector<T extends ImageGray>
        Parameters:
        intrinsic - The camera's intrinsic parmeters
      • getFiducialToCamera

        public void getFiducialToCamera(int which,
                                        Se3_F64 fiducialToCamera)
        Description copied from interface: FiducialDetector
        Used to retrieve the transformation from the fiducial's reference frame to the camera's reference frame.
        Specified by:
        getFiducialToCamera in interface FiducialDetector<T extends ImageGray>
        Parameters:
        which - Fiducial's index
        fiducialToCamera - (output) Storage for the transform. modified.
      • getId

        public long getId(int which)
        Description copied from interface: FiducialDetector
        If applicable, returns the ID of the fiducial found.
        Specified by:
        getId in interface FiducialDetector<T extends ImageGray>
        Parameters:
        which - Fiducial's index
        Returns:
        ID of the fiducial
      • getWidth

        public double getWidth(int which)
        Description copied from interface: FiducialDetector
        Returns 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:
        getWidth in interface FiducialDetector<T extends ImageGray>
        Parameters:
        which - Fiducial's index
        Returns:
        Fiducial's width.
      • getCalibrationPoints

        public java.util.List<Point2D_F64> getCalibrationPoints()

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.