boofcv.abst.fiducial.calib
Class ConfigSquareGridBinary
- java.lang.Object
-
- boofcv.abst.fiducial.calib.ConfigSquareGridBinary
-
- All Implemented Interfaces:
- Configuration, java.io.Serializable
public class ConfigSquareGridBinary extends java.lang.Object implements Configuration
Configuration for aCalibrationDetectorSquareFiducialGridthat uses aDetectFiducialSquareBinaryfor the inner fiducials.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description ConfigFiducialBinaryconfigDetectorConfigThresholdconfigThresholdlong[]idsOrdered list of expected square fiducial ID numbers.intnumColsNumber of squares wide the grid is.intnumRowsNumber of squares tall the grid is.doublespaceWidthPhysical width of hte space between each squaredoublesquareWidthPhysical width of the square.
-
Constructor Summary
Constructors Constructor and Description ConfigSquareGridBinary()ConfigSquareGridBinary(int numRows, int numCols, double squareWidth, double spaceWidth)Configures the grid with the following specifications and configures the fiducial detector to be 3x3 with fiducials id number 0 to (numRows*numCols)-1.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcheckValidity()Checks to see if the configuration is valid.static ConfigSquareGridBinaryparseSimple(java.io.BufferedReader reader)Parses a simple configuration text sequence that describes the target type.
-
-
-
Field Detail
-
configDetector
public ConfigFiducialBinary configDetector
-
configThreshold
public ConfigThreshold configThreshold
-
ids
public long[] ids
Ordered list of expected square fiducial ID numbers. Starts from top left and follows a row major ordering.
-
numRows
public int numRows
Number of squares tall the grid is. Target dependent.
-
numCols
public int numCols
Number of squares wide the grid is. Target dependent.
-
squareWidth
public double squareWidth
Physical width of the square.
-
spaceWidth
public double spaceWidth
Physical width of hte space between each square
-
-
Constructor Detail
-
ConfigSquareGridBinary
public ConfigSquareGridBinary(int numRows, int numCols, double squareWidth, double spaceWidth)Configures the grid with the following specifications and configures the fiducial detector to be 3x3 with fiducials id number 0 to (numRows*numCols)-1.
-
ConfigSquareGridBinary
public ConfigSquareGridBinary()
-
-
Method Detail
-
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
-
parseSimple
public static ConfigSquareGridBinary parseSimple(java.io.BufferedReader reader) throws java.io.IOException
Parses a simple configuration text sequence that describes the target type. Example is shown below:# Description of a binary grid calibration target binary_width 3 grid_shape 4 square_width 40 space_width 20 numbers 0 1 2 3 4 5 6 7 8 9 10 11
- Parameters:
reader- Input- Returns:
- Configuration
- Throws:
java.io.IOException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG