Package boofcv.abst.fiducial.calib
Class ConfigGridDimen
java.lang.Object
boofcv.abst.fiducial.calib.ConfigGridDimen
- All Implemented Interfaces:
Configuration
,Serializable
Generic class that specifies the physical dimensions of a grid. Rows and columns count the number of shapes
in a grid. If chessboard it's the number of squares, including the space between them.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionint
Number of squares wide the grid is.int
Number of squares tall the grid is.double
Space between shapes.double
Physical size of each shape. -
Constructor Summary
ConstructorDescriptionConfigGridDimen
(int numRows, int numCols, double shapeSize) ConfigGridDimen
(int numRows, int numCols, double shapeSize, double shapeDistance) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks to see if the configuration is valid.double
setTo
(int numRows, int numCols, double shapeSize, double shapeDistance) setTo
(ConfigGridDimen src) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface boofcv.struct.Configuration
serializeActiveFields, serializeInitialize
-
Field Details
-
numRows
public int numRowsNumber of squares tall the grid is. Target dependent. -
numCols
public int numColsNumber of squares wide the grid is. Target dependent. -
shapeSize
public double shapeSizePhysical size of each shape. Side length for squares. Diameter for a circle. -
shapeDistance
public double shapeDistanceSpace between shapes. For squares this would be the distance between the sides. For circles is the distance between the circle's center. Not used for chessboard.
-
-
Constructor Details
-
ConfigGridDimen
public ConfigGridDimen(int numRows, int numCols, double shapeSize) -
ConfigGridDimen
public ConfigGridDimen(int numRows, int numCols, double shapeSize, double shapeDistance) -
ConfigGridDimen
public ConfigGridDimen()
-
-
Method Details
-
setTo
-
setTo
-
getSpacetoSizeRatio
public double getSpacetoSizeRatio() -
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
-
toString
-