MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ canny() [1/2]

MAYAFLUX_API void MayaFlux::Kinesis::Vision::canny ( std::span< const float >  gray,
std::span< float >  dst,
uint32_t  w,
uint32_t  h,
float  sigma,
float  low_threshold,
float  high_threshold 
)

Canny edge detector writing into a caller-supplied buffer.

Parameters
grayInput span, size w * h.
dstOutput span, size >= w * h. Binary: 1.0f on edges.
wImage width in pixels.
hImage height in pixels.
sigmaGaussian pre-blur sigma. 0.0f skips blur.
low_thresholdHysteresis low threshold in [0, 1].
high_thresholdHysteresis high threshold in [0, 1].

Definition at line 233 of file Gradient.cpp.

238{
239 auto result = canny(gray, w, h, sigma, low_threshold, high_threshold);
240 std::ranges::copy(result, dst.begin());
241}
uint32_t h
Definition InkPress.cpp:28
float sigma
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.
Definition Gradient.cpp:132

References canny(), h, and sigma.

+ Here is the call graph for this function: