Class FeatureSelectRandom<Point>
java.lang.Object
boofcv.alg.feature.detect.selector.FeatureSelectRandom<Point>
- All Implemented Interfaces:
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 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
-
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 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.
-