Package boofcv.factory.fiducial
Class ConfigFiducialBinary
java.lang.Object
boofcv.factory.fiducial.ConfigFiducialBinary
- All Implemented Interfaces:
Configuration,Serializable
Configuration for
SquareBinary_to_FiducialDetector.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleValue from 0 to 1.doubleHow wide the border is relative to the total fiducial width.intNumber of elements wide the encoded grid is.doubleFraction of border pixels which must be black.Configuration for square detector NOTE: Number of sides, clockwise, and convex are all set by the detector in its consturctor.doubleLength of a targets size in world units. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface boofcv.struct.Configuration
serializeActiveFields, serializeInitialize
-
Field Details
-
targetWidth
public double targetWidthLength of a targets size in world units. -
ambiguousThreshold
public double ambiguousThresholdValue 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 gridWidthNumber of elements wide the encoded grid is. Grids widths of 3, 4, or 5 are common. 4 is the standard. -
borderWidthFraction
public double borderWidthFractionHow 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 minimumBlackBorderFractionFraction of border pixels which must be black. -
squareDetector
Configuration for square detector NOTE: Number of sides, clockwise, and convex are all set by the detector in its consturctor. Values specified here are ignored.
-
-
Constructor Details
-
ConfigFiducialBinary
public ConfigFiducialBinary() -
ConfigFiducialBinary
public ConfigFiducialBinary(double targetWidth)
-
-
Method Details
-
setTo
-
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
-
toString
-