Package boofcv.factory.fiducial
Class ConfigHammingChessboard
java.lang.Object
boofcv.factory.fiducial.ConfigHammingChessboard
- All Implemented Interfaces:
Configuration
,Serializable
Defines the calibration pattern based on
hamming checkerboard fiducials
where square
markers are embedded inside a chessboard/checkerboard pattern. Calibration features come from the inner chessboard
pattern. Charuco is a member of this family.- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionboolean
If an even pattern then the top-left will always be a black squareint
The first marker will have this IDDescribes the markers are drawn inside the chessboard patterndouble
How much smaller the marker is relative to the chessboard squaresint
Number of squares wide the grid isint
Number of squares tall the grid isdouble
Size of a square in document units -
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks to see if the configuration is valid.static ConfigHammingChessboard
create
(HammingDictionary dictionary, int rows, int cols, double squareSize) Create from a pre-defined dictionarydouble
double
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface boofcv.struct.Configuration
serializeActiveFields, serializeInitialize
-
Field Details
-
numRows
public int numRowsNumber of squares tall the grid is -
numCols
public int numColsNumber of squares wide the grid is -
markerOffset
public int markerOffsetThe first marker will have this ID -
markers
Describes the markers are drawn inside the chessboard pattern -
markerScale
public double markerScaleHow much smaller the marker is relative to the chessboard squares -
squareSize
public double squareSizeSize of a square in document units -
chessboardEven
public boolean chessboardEvenIf an even pattern then the top-left will always be a black square
-
-
Constructor Details
-
ConfigHammingChessboard
-
ConfigHammingChessboard
public ConfigHammingChessboard()
-
-
Method Details
-
checkValidity
public void checkValidity()Description copied from interface:Configuration
Checks to see if the configuration is valid. If it is invalid, throw an exception explaining what is incorrect.- Specified by:
checkValidity
in interfaceConfiguration
-
setTo
-
getMarkerWidth
public double getMarkerWidth() -
getMarkerHeight
public double getMarkerHeight() -
create
public static ConfigHammingChessboard create(HammingDictionary dictionary, int rows, int cols, double squareSize) Create from a pre-defined dictionary
-