23 std::vector<float>
dx;
24 std::vector<float>
dy;
47 std::span<const float> gray, uint32_t w, uint32_t
h);
62MAYAFLUX_API
void sobel(
63 std::span<const float> gray,
67 uint32_t w, uint32_t
h);
81 std::span<const float> gray, uint32_t w, uint32_t
h);
89 std::span<const float> gray,
93 uint32_t w, uint32_t
h);
114[[nodiscard]] MAYAFLUX_API std::vector<float>
canny(
115 std::span<const float> gray, uint32_t w, uint32_t
h,
116 float sigma,
float low_threshold,
float high_threshold);
129MAYAFLUX_API
void canny(
130 std::span<const float> gray,
131 std::span<float> dst,
132 uint32_t w, uint32_t
h,
133 float sigma,
float low_threshold,
float high_threshold);
std::vector< float > canny(std::span< const float > gray, uint32_t w, uint32_t h, float sigma, float low_threshold, float high_threshold)
Canny edge detector.
void sobel(std::span< const float > gray, std::span< float > dx, std::span< float > dy, std::span< float > tmp, uint32_t w, uint32_t h)
Sobel gradient writing dx and dy into caller-supplied buffers.
void scharr(std::span< const float > gray, std::span< float > dx, std::span< float > dy, std::span< float > tmp, uint32_t w, uint32_t h)
Scharr gradient writing dx and dy into caller-supplied buffers.
std::vector< float > angle
Gradient angle in radians, [-pi, pi].
std::vector< float > magnitude
Gradient magnitude, normalised to [0, 1].
std::vector< float > dx
Horizontal gradient component.
std::vector< float > dy
Vertical gradient component.
Gradient maps produced by Sobel and Scharr operators.