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:
  • Field Details

    • regionScaleFactor

      public double regionScaleFactor
      Scales the size of a region up by this amount
    • minCellLength

      public int minCellLength
      The 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 interface Configuration
    • setTo

    • copy

      public ConfigGridUniform copy()