Class FeatureSelectRandom<Point>

All Implemented Interfaces:

public class FeatureSelectRandom<Point> extends Object implements FeatureSelectLimit<Point>
Randomly selects features up to the limit from the set of detected. This is actually not as bad of an approach as it might seem. Could be viewed as a less effective version of FeatureSelectUniformBest.
  • Constructor Details

    • FeatureSelectRandom

      public FeatureSelectRandom(long seed)
  • Method Details

    • select

      public void select(int imageWidth, int imageHeight, @Nullable @Nullable FastAccess<Point> prior, FastAccess<Point> detected, int limit, FastArray<Point> selected)
      Description copied from interface: FeatureSelectLimit
      Selects features inside the image.
      Specified by:
      select in interface FeatureSelectLimit<Point>
      imageWidth - Width of the image the features were detected in
      imageHeight - Height of the image the features were detected in
      prior - (Input) Locations of previously detected features
      detected - (Input) Locations of newly detected features
      limit - (Input) The maximum number of new features detected
      selected - (Output) Selected features. Element count not exceed the limit. Reset on every call.