Skip to main content

select_keypoints_grid

Function select_keypoints_grid 

Source
pub fn select_keypoints_grid(
    keypoints: &[Keypoint2],
    width: usize,
    height: usize,
    options: GridSelectionOptions,
) -> VisionResult<Vec<Keypoint2>>
Expand description

Retains the strongest keypoints in each image cell.

Output is ordered by cell scan order, then decreasing response, with the input index as the deterministic tie breaker.