Package boofcv.struct
Class ConfigGridUniform
java.lang.Object
boofcv.struct.ConfigGridUniform
- All Implemented Interfaces:
Configuration
,Serializable
public class ConfigGridUniform extends Object implements Configuration
Configuration for uniformly sampling points inside an image using a grid.
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description int
minCellLength
The smallest allowed cell size in pixelsdouble
regionScaleFactor
Scales the size of a region up by this amount -
Constructor Summary
Constructors Constructor Description ConfigGridUniform()
ConfigGridUniform(double regionScaleFactor, int minCellLength)
-
Method Summary
Modifier and Type Method Description void
checkValidity()
Checks to see if the configuration is valid.ConfigGridUniform
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 returnedConfigGridUniform
setTo(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
-