Class FeatureSelectN<Point>

java.lang.Object
boofcv.alg.feature.detect.selector.FeatureSelectN<Point>
All Implemented Interfaces:
FeatureSelectLimit<Point>

public class FeatureSelectN<Point> extends Object implements FeatureSelectLimit<Point>
Selects features periodically in the order they were detected until it hits the limit. This is better than just selecting the first N since features tend to ordered in a very specific way, e.g. top to bottom. you're more likely to get a spread out less biased set this way
  • Constructor Details

    • FeatureSelectN

      public FeatureSelectN()
  • 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>
      Parameters:
      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.