HarrisFeature.gridify#

HarrisFeature.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:

BaseFeature2D instance

Select features such that no more than nfeat features fall into each grid cell. The image is divided into an nbins x nbins grid.

Warning

Takes the first nfeat features in each grid cell, not the nfeat strongest. Sort the features by strength to achieve this.

Seealso:

sort