boofcv.factory.fiducial
Class ConfigFiducialBinary
- java.lang.Object
-
- boofcv.factory.fiducial.ConfigFiducialBinary
-
- All Implemented Interfaces:
- Configuration, java.io.Serializable
public class ConfigFiducialBinary extends java.lang.Object implements Configuration
Configuration forSquareBinary_to_FiducialDetector.- See Also:
DetectFiducialSquareBinary, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description doubleambiguousThresholdValue from 0 to 1.doubleborderWidthFractionHow wide the border is relative to the total fiducial width.intgridWidthNumber of elements wide the encoded grid is.doubleminimumBlackBorderFractionFraction of border pixels which must be black.ConfigPolygonDetectorsquareDetectorConfiguration for square detectordoubletargetWidthLength of a targets size in world units.
-
Constructor Summary
Constructors Constructor and Description ConfigFiducialBinary()ConfigFiducialBinary(double targetWidth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcheckValidity()Checks to see if the configuration is valid.doublegetBorderWidthFraction()intgetGridWidth()ConfigPolygonDetectorgetSquareDetector()doublegetTargetWidth()voidsetBorderWidthFraction(double borderWidthFraction)voidsetGridWidth(int gridWidth)voidsetSquareDetector(ConfigPolygonDetector squareDetector)voidsetTargetWidth(double targetWidth)java.lang.StringtoString()
-
-
-
Field Detail
-
targetWidth
public double targetWidth
Length of a targets size in world units.
-
ambiguousThreshold
public double ambiguousThreshold
Value from 0 to 1. 0 is very strict and 1 is very relaxed. Used when classifying a require block as black or white. If it can't be classified then the shape is discarded
-
gridWidth
public int gridWidth
Number of elements wide the encoded grid is. Grids widths of 3, 4, or 5 are common. 4 is the standard.
-
borderWidthFraction
public double borderWidthFraction
How wide the border is relative to the total fiducial width. 0.25 is standard and is a good compromise between ability to view at extreme angles and area to encode information.
-
minimumBlackBorderFraction
public double minimumBlackBorderFraction
Fraction of border pixels which must be black.
-
squareDetector
public ConfigPolygonDetector squareDetector
Configuration for square detector
-
-
Constructor Detail
-
ConfigFiducialBinary
public ConfigFiducialBinary()
-
ConfigFiducialBinary
public ConfigFiducialBinary(double targetWidth)
-
-
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
-
getGridWidth
public int getGridWidth()
-
setGridWidth
public void setGridWidth(int gridWidth)
-
getBorderWidthFraction
public double getBorderWidthFraction()
-
setBorderWidthFraction
public void setBorderWidthFraction(double borderWidthFraction)
-
getTargetWidth
public double getTargetWidth()
-
setTargetWidth
public void setTargetWidth(double targetWidth)
-
getSquareDetector
public ConfigPolygonDetector getSquareDetector()
-
setSquareDetector
public void setSquareDetector(ConfigPolygonDetector squareDetector)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG