Package boofcv.abst.fiducial.calib
Class ConfigECoCheckMarkers
java.lang.Object
boofcv.abst.fiducial.calib.ConfigECoCheckMarkers
- All Implemented Interfaces:
Configuration
,Serializable
Specifies the grid shape and physical sizes for one or more
ConfigECoCheckDetector
type markers.
In most use cases, having a single marker shape is desirable. However, the detector supports arbitrary
shapes for each marker. This configuration can do both by allowing the first marker in the list to be
duplicated.- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionint
Number of bits allocated to the checksum.double
Fraction of a cell's length the data bit isdouble
Fraction of the length the quite-zone is around data bitsstatic final int
static final int
int
Amount of error correction applied.int
Number of times the first marker is duplicated.Shapes of individual markers. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks to see if the configuration is valid.String which compactly describes markers with duplicate shapes.void
convertToGridList
(List<GridShape> markers) Converts this configuration into a list of GridShapesstatic ConfigECoCheckMarkers
Parses the standard compact name string and converts it into a configuration.static ConfigECoCheckMarkers
singleShape
(int rows, int cols, int numMarkers, double squareSize) Configures N markers with the same shapeMethods 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
-
DEFAULT_CHECKSUM
public static final int DEFAULT_CHECKSUM- See Also:
-
DEFAULT_ECC
public static final int DEFAULT_ECC- See Also:
-
dataBitWidthFraction
public double dataBitWidthFractionFraction of a cell's length the data bit is -
dataBorderFraction
public double dataBorderFractionFraction of the length the quite-zone is around data bits -
firstTargetDuplicated
public int firstTargetDuplicatedNumber of times the first marker is duplicated. -
markerShapes
Shapes of individual markers. The first marker might be duplicated. -
errorCorrectionLevel
public int errorCorrectionLevelAmount of error correction applied. Larger values increase the number of data bits that need to be encoded, but increase the number of errors it can recover from. More bits means smaller dots and more errors. If there are extra bits in the square they will be allocated to error correction automatically. If two targets have different amounts of error correction they will be incompatible.
0 = no error correction. 9 = maximum amount. -
checksumBits
public int checksumBitsNumber of bits allocated to the checksum. There can be at most 8 bits.
-
-
Constructor Details
-
ConfigECoCheckMarkers
public ConfigECoCheckMarkers()
-
-
Method Details
-
singleShape
public static ConfigECoCheckMarkers singleShape(int rows, int cols, int numMarkers, double squareSize) Configures N markers with the same shape -
parse
Parses the standard compact name string and converts it into a configuration. Note that error correction 'e' and checksum 'c' are optional. SeecompactName()
for a summary of this string format. -
convertToGridList
Converts this configuration into a list of GridShapes- Parameters:
markers
- (Output) Storage for converted shapes
-
setTo
-
compactName
String which compactly describes markers with duplicate shapes.
- Example: 9x7n1e3c6 means 9x7 pattern, 1 possible marker, with error correction level of 3, checksum with 6 bits.
- Example: 9x7n1 is the same, but ecc and checksum have default values.
-
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
-