boofcv.abst.fiducial
Class SquareImage_to_FiducialDetector<T extends ImageGray>
- java.lang.Object
-
- boofcv.abst.fiducial.BaseSquare_FiducialDetector<T,DetectFiducialSquareImage<T>>
-
- boofcv.abst.fiducial.SquareImage_to_FiducialDetector<T>
-
- All Implemented Interfaces:
- FiducialDetector<T>
public class SquareImage_to_FiducialDetector<T extends ImageGray> extends BaseSquare_FiducialDetector<T,DetectFiducialSquareImage<T>>
Wrapper aroundDetectFiducialSquareImageforFiducialDetector
-
-
Constructor Summary
Constructors Constructor and Description SquareImage_to_FiducialDetector(DetectFiducialSquareImage<T> alg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddPatternBinary(GrayU8 binary, double lengthSide)Add a new pattern to be detected.voidaddPatternImage(T pattern, double threshold, double lengthSide)Add a new pattern to be detected.doublegetWidth(int which)Returns the width of the fiducial in world units.-
Methods inherited from class boofcv.abst.fiducial.BaseSquare_FiducialDetector
computeStability, detect, getAlgorithm, getFiducialToCamera, getId, getInputType, isSizeKnown, isSupportedID, isSupportedPose, setIntrinsic, totalFound
-
-
-
-
Constructor Detail
-
SquareImage_to_FiducialDetector
public SquareImage_to_FiducialDetector(DetectFiducialSquareImage<T> alg)
-
-
Method Detail
-
addPatternImage
public void addPatternImage(T pattern, double threshold, double lengthSide)
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.
-
addPatternBinary
public void addPatternBinary(GrayU8 binary, double lengthSide)
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: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.- Parameters:
which- Fiducial's index- Returns:
- Fiducial's width.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG