- All Implemented Interfaces:
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
Method SummaryModifier and TypeMethodDescription
(int imageWidth, int imageHeight, @Nullable FastAccess<Point> prior, FastAccess<Point> detected, int limit, FastArray<Point> selected)Selects features inside the image.
selectpublic void select
(int imageWidth, int imageHeight, @Nullable @Nullable FastAccess<Point> prior, FastAccess<Point> detected, int limit, FastArray<Point> selected)Description copied from interface:
FeatureSelectLimitSelects features inside the image.
- Specified by:
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.