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
Modifier and TypeFieldDescriptionint
The smallest allowed cell size in pixelsdouble
Scales the size of a region up by this amount -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks to see if the configuration is valid.copy()
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 returnedsetTo
(ConfigGridUniform src) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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: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
-
setTo
-
copy
-