boofcv.abst.fiducial
Class BaseSquare_FiducialDetector<T extends ImageGray,Detector extends BaseDetectFiducialSquare<T>>
- java.lang.Object
-
- boofcv.abst.fiducial.BaseSquare_FiducialDetector<T,Detector>
-
- All Implemented Interfaces:
- FiducialDetector<T>
- Direct Known Subclasses:
- SquareBinary_to_FiducialDetector, SquareImage_to_FiducialDetector
public abstract class BaseSquare_FiducialDetector<T extends ImageGray,Detector extends BaseDetectFiducialSquare<T>> extends java.lang.Object implements FiducialDetector<T>
Wrapper aroundBaseDetectFiducialSquareforFiducialDetector
-
-
Constructor Summary
Constructors Constructor and Description BaseSquare_FiducialDetector(Detector alg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleancomputeStability(int which, double disturbance, FiducialStability results)Computes metrics which represents the fiducial's pose estimate stability given its current observed state.voiddetect(T input)Call to detect the fiducial inside the image.DetectorgetAlgorithm()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 imagebooleanisSizeKnown()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-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface boofcv.abst.fiducial.FiducialDetector
getWidth
-
-
-
-
Constructor Detail
-
BaseSquare_FiducialDetector
public BaseSquare_FiducialDetector(Detector alg)
-
-
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.
-
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
-
getInputType
public ImageType<T> getInputType()
Description copied from interface:FiducialDetectorType of input image- Specified by:
getInputTypein interfaceFiducialDetector<T extends ImageGray>
-
computeStability
public boolean computeStability(int which, double disturbance, FiducialStability results)Description copied from interface:FiducialDetectorComputes metrics which represents the fiducial's pose estimate stability given its current observed state. This can be viewed as an estimate of the pose estimate's precision, but not its accuracy. These numbers are generated by perturbing landmarks (by the user provided amount) and seeing how it affects the pose estimate..
The metrics should be considered more qualitative than quantitative since exactly how this metric is computed isn't specified and can vary depending on target type of implementation type. The results could every vary each time its called, even with the the exact same inputs.
- 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
-
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
-
getAlgorithm
public Detector getAlgorithm()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG