Package boofcv.struct
Class ConfigGridUniform
java.lang.Object
boofcv.struct.ConfigGridUniform
- All Implemented Interfaces:
Configuration,Serializable
Configuration for uniformly sampling points inside an image using a grid.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe smallest allowed cell size in pixelsdoubleScales the size of a region up by this amount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks to see if the configuration is valid.copy()intselectTargetCellSize(int maxSample, int imageWidth, int imageHeight) Selects the desired length of a cell based on the input image size and maximum number of points returnedsetTo(ConfigGridUniform src) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface boofcv.struct.Configuration
serializeActiveFields, serializeInitialize
-
Field Details
-
regionScaleFactor
public double regionScaleFactorScales the size of a region up by this amount -
minCellLength
public int minCellLengthThe smallest allowed cell size in pixels
-
-
Constructor Details
-
ConfigGridUniform
public ConfigGridUniform(double regionScaleFactor, int minCellLength) -
ConfigGridUniform
public ConfigGridUniform()
-
-
Method Details
-
selectTargetCellSize
public int selectTargetCellSize(int maxSample, int imageWidth, int imageHeight) Selects the desired length of a cell based on the input image size and maximum number of points returned- Parameters:
maxSample- The maximum number of points/features which can be returned.
-
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
-
setTo
-
copy
-