Package boofcv.abst.fiducial
Class Uchiya_to_FiducialDetector<T extends ImageGray<T>>
java.lang.Object
boofcv.abst.fiducial.FiducialDetectorPnP<T>
boofcv.abst.fiducial.Uchiya_to_FiducialDetector<T>
- All Implemented Interfaces:
FiducialDetector<T>,FiducialTracker<T>
public class Uchiya_to_FiducialDetector<T extends ImageGray<T>>
extends FiducialDetectorPnP<T>
implements FiducialTracker<T>
-
Field Summary
Fields inherited from class boofcv.abst.fiducial.FiducialDetectorPnP
pixelToNorm -
Constructor Summary
ConstructorsConstructorDescriptionUchiya_to_FiducialDetector(UchiyaMarkerImageTracker<T> tracker, double markerWidth, double markerHeight, ImageType<T> imageType) -
Method Summary
Modifier and TypeMethodDescriptionaddMarker(List<Point2D_F64> locations2D) Creates a document from a set of points.voidDetects and tracks fiducials inside the image.getBounds(int which, @Nullable Polygon2D_F64 storage) Used to retrieve the bounds around a marker in the image.voidgetCenter(int which, Point2D_F64 location) Returns where in the image the fiducial is.getControl3D(int which) 3D location of control points in the fiducial reference framegetDetectedControl(int which) Returns a list of detected control points in the image for the specified fiducial.longgetId(int which) If applicable, returns the ID of the fiducial found.Type of input imagegetMessage(int which) If applicable, returns a message associated with the fiducial.doublegetSideHeight(int which) Height of the fiducial.doublegetSideWidth(int which) Width of the fiducial.doublegetWidth(int which) Returns the width of the fiducial in world units.booleanhasID()If true thenFiducialDetector.getId(int)returns a valid unique numberbooleanIf true thenFiducialDetector.getMessage(int)returns a valid messagevoidreset()Removes all past history from the tracker and sets it back into its current state.intThe total number of fiducial foundMethods inherited from class boofcv.abst.fiducial.FiducialDetectorPnP
computeStability, estimatePose, getFiducialToCamera, getLensDistortion, is3D, setLensDistortionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface boofcv.abst.fiducial.FiducialDetector
computeStability, getFiducialToCamera, getLensDistortion, is3D, setLensDistortion
-
Constructor Details
-
Uchiya_to_FiducialDetector
public Uchiya_to_FiducialDetector(UchiyaMarkerImageTracker<T> tracker, double markerWidth, double markerHeight, ImageType<T> imageType)
-
-
Method Details
-
detect
Description copied from interface:FiducialTrackerDetects and tracks fiducials inside the image. Since it is a tracker it is assumed that a sequence of images is being processed. Order of images will matter.- Specified by:
detectin interfaceFiducialDetector<T extends ImageGray<T>>- Specified by:
detectin interfaceFiducialTracker<T extends ImageGray<T>>- Parameters:
input- Input image. Not modified.
-
reset
public void reset()Description copied from interface:FiducialTrackerRemoves all past history from the tracker and sets it back into its current state.- Specified by:
resetin interfaceFiducialTracker<T extends ImageGray<T>>
-
totalFound
public int totalFound()Description copied from interface:FiducialDetectorThe total number of fiducial found- Specified by:
totalFoundin interfaceFiducialDetector<T extends ImageGray<T>>- Returns:
- number of targets found
-
getCenter
Description copied from interface:FiducialDetectorReturns where in the image the fiducial is. Typically this will be the fiducial's visual center. Note that the visual center is unlikely to be the projection of the 3D geometric center. To find the former you need to reproject it using the found fiducialToCamera.NOTE: The reprojected center might not be the same as the location returned here.
- Specified by:
getCenterin interfaceFiducialDetector<T extends ImageGray<T>>- Parameters:
which- Fiducial's indexlocation- (output) Storage for the transform. modified.
-
getBounds
Description copied from interface:FiducialDetectorUsed to retrieve the bounds around a marker in the image. How the bounds are defined is left up the implementation. It could be a simple rectangle or it could be corner features.- Specified by:
getBoundsin interfaceFiducialDetector<T extends ImageGray<T>>- Parameters:
which- Which fiducial.storage- (Optional) Storage for fiducials.- Returns:
- Found marker. Points are owned by the caller and will not be modified in the future.
-
getId
public long getId(int which) Description copied from interface:FiducialDetectorIf applicable, returns the ID of the fiducial found. CallFiducialDetector.hasID()to see if this function returns a valid value.- Specified by:
getIdin interfaceFiducialDetector<T extends ImageGray<T>>- Parameters:
which- Detected fiducial's index- Returns:
- ID of the fiducial
-
getMessage
Description copied from interface:FiducialDetectorIf applicable, returns a message associated with the fiducial. CallFiducialDetector.hasMessage()()} to see if this function returns a valid value.- Specified by:
getMessagein interfaceFiducialDetector<T extends ImageGray<T>>- Parameters:
which- Detected fiducial's index- Returns:
- Encoded message
-
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<T>>- Parameters:
which- Fiducial's index- Returns:
- Fiducial's width.
-
getSideWidth
public double getSideWidth(int which) Description copied from class:FiducialDetectorPnPWidth of the fiducial. used to compute stability- Specified by:
getSideWidthin classFiducialDetectorPnP<T extends ImageGray<T>>- Parameters:
which- specifies which fiducial- Returns:
- the width
-
getSideHeight
public double getSideHeight(int which) Description copied from class:FiducialDetectorPnPHeight of the fiducial. used to compute stability- Specified by:
getSideHeightin classFiducialDetectorPnP<T extends ImageGray<T>>- Parameters:
which- specifies which fiducial- Returns:
- the height
-
getDetectedControl
Description copied from class:FiducialDetectorPnPReturns a list of detected control points in the image for the specified fiducial. Observations will be in distorted image pixels.- Specified by:
getDetectedControlin classFiducialDetectorPnP<T extends ImageGray<T>>
-
getControl3D
Description copied from class:FiducialDetectorPnP3D location of control points in the fiducial reference frame- Specified by:
getControl3Din classFiducialDetectorPnP<T extends ImageGray<T>>- Returns:
- 3D location of control points
-
hasID
public boolean hasID()Description copied from interface:FiducialDetectorIf true thenFiducialDetector.getId(int)returns a valid unique number- Specified by:
hasIDin interfaceFiducialDetector<T extends ImageGray<T>>- Returns:
- boolean
-
hasMessage
public boolean hasMessage()Description copied from interface:FiducialDetectorIf true thenFiducialDetector.getMessage(int)returns a valid message- Specified by:
hasMessagein interfaceFiducialDetector<T extends ImageGray<T>>- Returns:
- boolean
-
getInputType
Description copied from interface:FiducialDetectorType of input image- Specified by:
getInputTypein interfaceFiducialDetector<T extends ImageGray<T>>
-
addMarker
Creates a document from a set of points. -
getLlahOperations
-
getTracks
-