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
FieldsModifier and TypeFieldDescriptionintThe first marker will have this IDEncoding dictionary for binary patternsintNumber of squares wide the grid isintNumber of squares tall the grid isdoubleHow wide the space is between squares relative to the length of a squaredoubleSize of a square in document units -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks to see if the configuration is valid.static ConfigHammingGridcreate(HammingDictionary dictionary, int rows, int cols, double squareSize, double spaceToSquare) Create from a pre-defined dictionarydoubledoublesetTo(ConfigHammingGrid src) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:ConfigurationChecks to see if the configuration is valid. If it is invalid, throw an exception explaining what is incorrect.- Specified by:
checkValidityin 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
-