public class DetectFiducialSquareGrid<T extends boofcv.struct.image.ImageGray<T>>
extends java.lang.Object
BaseDetectFiducialSquare intended for use in calibration.
It allows parts of the fiducial to be visible and uniquely determined across multiple cameras. The algorithm
simply looks for the expected fiducials in an image and saves the corners that they appear at. Does not check to
see if the ordering is correct. If the same fiducial appears multiple times that fiducial is ignored. Only one
grid fiducial is expected to be visible at any time.
The user must provide a set of fiducial ID numbers. Each unique numbers corresponds to an expected fiducial. The
first number in the list refers to the fiducial in the top left corner (minus X and positive Y) in the fiducial's
frame. The other elements are added in a row-major order.
| Modifier and Type | Class and Description |
|---|---|
static class |
DetectFiducialSquareGrid.Detection
A detected inner fiducial.
|
| Constructor and Description |
|---|
DetectFiducialSquareGrid(int numRows,
int numCols,
long[] numbers,
BaseDetectFiducialSquare<T> detector)
Configures the fiducial detector.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
detect(T input)
Searches for the fiducial inside the image.
|
java.util.List<DetectFiducialSquareGrid.Detection> |
getDetections() |
BaseDetectFiducialSquare<T> |
getDetector() |
public DetectFiducialSquareGrid(int numRows,
int numCols,
long[] numbers,
BaseDetectFiducialSquare<T> detector)
numRows - Number of rows in the gridnumCols - Number of columns in the grdnumbers - The fiducial ID numbers its expected to see. Order matters.detector - Fiducial detectorpublic boolean detect(T input)
input - Input imagepublic java.util.List<DetectFiducialSquareGrid.Detection> getDetections()
public BaseDetectFiducialSquare<T> getDetector()