Package boofcv.factory.fiducial
Class ConfigHammingGrid
java.lang.Object
boofcv.factory.fiducial.ConfigHammingGrid
- All Implemented Interfaces:
Configuration
,Serializable
Defines the calibration pattern based on
hamming square fiducials
where each square
is a marker that can be uniquely identified. These are typically used for multi camera calibration and are
robust against partial occlusions. Aruco Grids are a member of this family.- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionint
The first marker will have this IDEncoding dictionary for binary patternsint
Number of squares wide the grid isint
Number of squares tall the grid isdouble
How wide the space is between squares relative to the length of a squaredouble
Size of a square in document units -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks to see if the configuration is valid.static ConfigHammingGrid
create
(HammingDictionary dictionary, int rows, int cols, double squareSize, double spaceToSquare) Create from a pre-defined dictionarydouble
double
setTo
(ConfigHammingGrid src) 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 -
squareSize
public double squareSizeSize of a square in document units -
spaceToSquare
public double spaceToSquareHow wide the space is between squares relative to the length of a square -
markerOffset
public int markerOffsetThe first marker will have this ID -
markers
Encoding dictionary for binary patterns
-
-
Constructor Details
-
ConfigHammingGrid
-
ConfigHammingGrid
public ConfigHammingGrid()
-
-
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 ConfigHammingGrid create(HammingDictionary dictionary, int rows, int cols, double squareSize, double spaceToSquare) Create from a pre-defined dictionary
-