Class FeatureSelectN<Point>
java.lang.Object
boofcv.alg.feature.detect.selector.FeatureSelectN<Point>
- All Implemented Interfaces:
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
select
(int imageWidth, int imageHeight, @Nullable FastAccess<Point> prior, FastAccess<Point> detected, int limit, FastArray<Point> selected) Selects features inside the image.
-
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 interfaceFeatureSelectLimit<Point>
- Parameters:
imageWidth
- Width of the image the features were detected inimageHeight
- Height of the image the features were detected inprior
- (Input) Locations of previously detected featuresdetected
- (Input) Locations of newly detected featureslimit
- (Input) The maximum number of new features detectedselected
- (Output) Selected features. Element count not exceed the limit. Reset on every call.
-