FREAKFeature.gridify#
- FREAKFeature.gridify(nbins: int | tuple[int, int], nfeat: int) BaseFeature2D[source]#
Sort features into grid
- Parameters:
- Returns:
set of gridded features
- Return type:
BaseFeature2Dinstance
Select features such that no more than
nfeatfeatures fall into each grid cell. The image is divided into annbinsxnbinsgrid.Warning
Takes the first
nfeatfeatures in each grid cell, not thenfeatstrongest. Sort the features by strength to achieve this.Changed in version 2.5.0: The result keeps the descriptors and the scale, orientation and strength of the features, and a feature at the right or bottom edge of the image no longer raises
IndexError.See also