Package boofcv.abst.fiducial
Class SquareImage_to_FiducialDetector<T extends ImageGray<T>>
java.lang.Object
boofcv.abst.fiducial.FiducialDetectorPnP<T>
boofcv.abst.fiducial.SquareBase_to_FiducialDetector<T,DetectFiducialSquareImage<T>>
boofcv.abst.fiducial.SquareImage_to_FiducialDetector<T>
- All Implemented Interfaces:
FiducialDetector<T>
public class SquareImage_to_FiducialDetector<T extends ImageGray<T>>
extends SquareBase_to_FiducialDetector<T,DetectFiducialSquareImage<T>>
Wrapper around
DetectFiducialSquareImage
for FiducialDetector
-
Field Summary
Fields inherited from class boofcv.abst.fiducial.FiducialDetectorPnP
pixelToNorm
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPatternBinary
(GrayU8 binary, double lengthSide) Add a new pattern to be detected.void
addPatternImage
(T pattern, double threshold, double lengthSide) Add a new pattern to be detected.double
getSideHeight
(int which) Height of the fiducial.double
getSideWidth
(int which) Width of the fiducial.double
getWidth
(int which) Returns the width of the fiducial in world units.Methods inherited from class boofcv.abst.fiducial.SquareBase_to_FiducialDetector
detect, estimatePose, getAlgorithm, getBounds, getCenter, getControl3D, getDetectedControl, getId, getInputType, getMessage, hasID, hasMessage, setLensDistortion, totalFound
Methods inherited from class boofcv.abst.fiducial.FiducialDetectorPnP
computeStability, getFiducialToCamera, getLensDistortion, is3D
-
Constructor Details
-
SquareImage_to_FiducialDetector
-
-
Method Details
-
addPatternImage
Add a new pattern to be detected. This function takes in a raw gray scale image and thresholds it.- Parameters:
pattern
- Gray scale image of the patternthreshold
- Threshold used to convert it into a binary imagelengthSide
- Length of a side on the square in world units.
-
getSideWidth
public double getSideWidth(int which) Description copied from class:FiducialDetectorPnP
Width of the fiducial. used to compute stability- Specified by:
getSideWidth
in classFiducialDetectorPnP<T extends ImageGray<T>>
- Parameters:
which
- specifies which fiducial- Returns:
- the width
-
getSideHeight
public double getSideHeight(int which) Description copied from class:FiducialDetectorPnP
Height of the fiducial. used to compute stability- Specified by:
getSideHeight
in classFiducialDetectorPnP<T extends ImageGray<T>>
- Parameters:
which
- specifies which fiducial- Returns:
- the height
-
addPatternBinary
Add a new pattern to be detected.- Parameters:
binary
- Binary image of the pattern. 0 = black, 1 = white.lengthSide
- Length of a side on the square in world units.
-
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.- Parameters:
which
- Fiducial's index- Returns:
- Fiducial's width.
-