|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API std::vector< Keypoint > MayaFlux::Kinesis::Vision::extract_peaks | ( | std::span< const float > | response, |
| uint32_t | w, | ||
| uint32_t | h, | ||
| float | threshold, | ||
| uint32_t | nms_radius | ||
| ) |
Extract peaks from a response map via non-maximum suppression.
A pixel is a peak if its response exceeds threshold and it is the strict maximum within a square window of half-size nms_radius. Ties are broken in favour of the pixel with the lower raster index.
Returned Keypoints are sorted by descending response.
| response | Response map span, size must be w * h, values in [0, 1]. |
| w | Image width in pixels. |
| h | Image height in pixels. |
| threshold | Minimum response value to consider. In [0, 1]. |
| nms_radius | Non-maximum suppression half-window size in pixels. |
Definition at line 184 of file Harris.cpp.
References a, b, h, nms_radius, and threshold.
Referenced by MayaFlux::Yantra::FeatureExtractor< InputType, OutputType >::extract_implementation(), and MayaFlux::Kinesis::Vision::VisionExecutor::run().
Here is the caller graph for this function: