public abstract class SquareBase_to_FiducialDetector<T extends boofcv.struct.image.ImageGray<T>,Detector extends BaseDetectFiducialSquare<T>> extends FiducialDetectorPnP<T>
BaseDetectFiducialSquare for FiducialDetector| Constructor and Description |
|---|
SquareBase_to_FiducialDetector(Detector alg) |
| Modifier and Type | Method and Description |
|---|---|
void |
detect(T input)
Detects fiducials inside the image
|
protected boolean |
estimatePose(int which,
java.util.List<boofcv.struct.geo.Point2D3D> points,
georegression.struct.se.Se3_F64 fiducialToCamera)
Given the mapping of 2D observations to known 3D points estimate the pose of the fiducial.
|
Detector |
getAlgorithm() |
georegression.struct.shapes.Polygon2D_F64 |
getBounds(int which,
georegression.struct.shapes.Polygon2D_F64 storage)
Used to retrieve the bounds around a marker in the image.
|
void |
getCenter(int which,
georegression.struct.point.Point2D_F64 location)
Return the intersection of two lines defined by opposing corners.
|
protected java.util.List<boofcv.struct.geo.Point2D3D> |
getControl3D(int which)
3D location of control points in the fiducial reference frame
|
java.util.List<boofcv.struct.geo.PointIndex2D_F64> |
getDetectedControl(int which)
Returns a list of detected control points in the image for the specified fiducial.
|
long |
getId(int which)
If applicable, returns the ID of the fiducial found.
|
boofcv.struct.image.ImageType<T> |
getInputType()
Type of input image
|
java.lang.String |
getMessage(int which)
If applicable, returns a message associated with the fiducial.
|
boolean |
hasMessage()
If true then
FiducialDetector.getMessage(int) returns a valid message |
boolean |
hasUniqueID()
If true then
FiducialDetector.getId(int) returns a valid unique number |
void |
setLensDistortion(boofcv.alg.distort.LensDistortionNarrowFOV distortion,
int width,
int height)
Specifies how to remove lens distortion from the input image and how to convert pixels into normalized
image coordinates.
|
int |
totalFound()
The total number of fiducial found
|
computeStability, getFiducialToCamera, getLensDistortion, is3Dclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetWidthpublic SquareBase_to_FiducialDetector(Detector alg)
public void detect(T input)
FiducialDetectorinput - Input image. Not modified.public void getCenter(int which,
georegression.struct.point.Point2D_F64 location)
which - Fiducial's indexlocation - (output) Storage for the transform. modified.protected boolean estimatePose(int which,
java.util.List<boofcv.struct.geo.Point2D3D> points,
georegression.struct.se.Se3_F64 fiducialToCamera)
FiducialDetectorPnPestimatePose in class FiducialDetectorPnP<T extends boofcv.struct.image.ImageGray<T>>public void setLensDistortion(boofcv.alg.distort.LensDistortionNarrowFOV distortion,
int width,
int height)
FiducialDetectorsetLensDistortion in interface FiducialDetector<T extends boofcv.struct.image.ImageGray<T>>setLensDistortion in class FiducialDetectorPnP<T extends boofcv.struct.image.ImageGray<T>>distortion - Lens distortion model. null if you want to remove a lens distortion model that had previously
been set.width - Input image's width.height - Input image's heightpublic int totalFound()
FiducialDetectorpublic long getId(int which)
FiducialDetectorFiducialDetector.hasUniqueID() to see if this function
returns a valid value.which - Detected fiducial's indexpublic java.lang.String getMessage(int which)
FiducialDetectorFiducialDetector.hasMessage() ()} to see if this function
returns a valid value.which - Detected fiducial's indexpublic boolean hasUniqueID()
FiducialDetectorFiducialDetector.getId(int) returns a valid unique numberpublic boolean hasMessage()
FiducialDetectorFiducialDetector.getMessage(int) returns a valid messagepublic boofcv.struct.image.ImageType<T> getInputType()
FiducialDetectorpublic Detector getAlgorithm()
public java.util.List<boofcv.struct.geo.PointIndex2D_F64> getDetectedControl(int which)
FiducialDetectorPnPgetDetectedControl in class FiducialDetectorPnP<T extends boofcv.struct.image.ImageGray<T>>protected java.util.List<boofcv.struct.geo.Point2D3D> getControl3D(int which)
FiducialDetectorPnPgetControl3D in class FiducialDetectorPnP<T extends boofcv.struct.image.ImageGray<T>>public georegression.struct.shapes.Polygon2D_F64 getBounds(int which,
@Nullable
georegression.struct.shapes.Polygon2D_F64 storage)
FiducialDetectorwhich - Which fiducial.storage - (Optional) Storage for markers.