FREAKFeature.gridify#
- FREAKFeature.gridify(nbins: int | tuple[int, int], nfeat: int) BaseFeature2D#
Sort features into grid
- Parameters:
nfeat (int) – maximum number of features per grid cell
nbins (int) – number of grid cells horizontally and vertically
- 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.- Seealso: