Package boofcv.factory.fiducial
Class ConfigHammingMarker
java.lang.Object
boofcv.factory.fiducial.ConfigHammingMarker
- All Implemented Interfaces:
Configuration
,Serializable
Defines the dictionary and how they are encoded in a Hamming distance marker.
Values for each pre-defined dictionary comes from ArUco marker 3 source code. [1]
[1] ArUco 3
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptiondouble
How wide the border is relative to the total fiducial width.Which dictionary is this based off of.How each marker is encodedint
Number of cells along each side in the binary gridint
The minimum hamming distance separating two markersdouble
Length of a targets size in world units. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMarker
(long encoding) Adds a new marker with the specified encoding numberint
void
Checks to see if the configuration is valid.static ConfigHammingMarker
decodeDictionaryString
(String text) Decodes a string that defined a dictionary in standard formatstatic ConfigHammingMarker
loadDictionary
(HammingDictionary dictionary) Creates a predefined dictionarystatic ConfigHammingMarker
loadPredefined
(String name) Loads a predefined dictionary stored in the the resourcesOptional functions that tells a serializer which fields are being used and not ignored.void
Optional function which is called after deserialization and performs initializationsetTo
(ConfigHammingMarker src)
-
Field Details
-
borderWidthFraction
public double borderWidthFractionHow wide the border is relative to the total fiducial width. Typically, the width of one square. -
gridWidth
public int gridWidthNumber of cells along each side in the binary grid -
minimumHamming
public int minimumHammingThe minimum hamming distance separating two markers -
encoding
How each marker is encoded -
dictionary
Which dictionary is this based off of. Typically, this will be pre-defined. -
targetWidth
public double targetWidthLength of a targets size in world units.
-
-
Constructor Details
-
ConfigHammingMarker
public ConfigHammingMarker()
-
-
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
-
serializeInitialize
public void serializeInitialize()Description copied from interface:Configuration
Optional function which is called after deserialization and performs initialization- Specified by:
serializeInitialize
in interfaceConfiguration
-
serializeActiveFields
Description copied from interface:Configuration
Optional functions that tells a serializer which fields are being used and not ignored. a field is ignored when there a "type" and only members of the type are used. If empty then it's assumed all fields are active.- Specified by:
serializeActiveFields
in interfaceConfiguration
-
setTo
-
bitsPerGrid
public int bitsPerGrid() -
addMarker
public void addMarker(long encoding) Adds a new marker with the specified encoding number -
decodeDictionaryString
Decodes a string that defined a dictionary in standard format -
loadPredefined
Loads a predefined dictionary stored in the the resources -
loadDictionary
Creates a predefined dictionary- Parameters:
dictionary
- Which dictionary it should create- Returns:
- The specified dictionary
-