|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API std::vector< float > MayaFlux::Kinesis::Vision::harris_response | ( | std::span< const float > | gray, |
| uint32_t | w, | ||
| uint32_t | h, | ||
| float | k = 0.04F, |
||
| float | sigma = 1.0F |
||
| ) |
Compute the Harris corner response map.
For each pixel computes R = det(M) - k * trace(M)^2 where M is the structure tensor accumulated over a sigma-weighted window. Negative responses are clamped to 0. Output is normalised to [0, 1] by the observed peak response.
Structure tensor gradients are computed via a 3x3 Sobel operator. The tensor is smoothed with a Gaussian of standard deviation sigma before computing det and trace.
| gray | Single-channel float span, size must be w * h. |
| w | Image width in pixels. |
| h | Image height in pixels. |
| k | Harris sensitivity parameter. Typical range [0.04, 0.06]. |
| sigma | Gaussian smoothing sigma for structure tensor. Must be > 0. |
Definition at line 19 of file Harris.cpp.
References gaussian_blur(), h, k, MayaFlux::peak(), sigma, and sobel().
Referenced by MayaFlux::Kinesis::Vision::VisionExecutor::run().
Here is the call graph for this function:
Here is the caller graph for this function: