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
FieldsModifier and TypeFieldDescriptionbooleanIf an even pattern then the top-left will always be a black squareintThe first marker will have this IDDescribes the markers are drawn inside the chessboard patterndoubleHow much smaller the marker is relative to the chessboard squaresintNumber of squares wide the grid isintNumber of squares tall the grid isdoubleSize of a square in document units -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks to see if the configuration is valid.static ConfigHammingChessboardcreate(HammingDictionary dictionary, int rows, int cols, double squareSize) Create from a pre-defined dictionarydoubledoubleMethods 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 -
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: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 ConfigHammingChessboard create(HammingDictionary dictionary, int rows, int cols, double squareSize) Create from a pre-defined dictionary
-