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

◆ sobel() [1/2]

MAYAFLUX_API void MayaFlux::Kinesis::Vision::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.

Does not compute magnitude or angle. tmp is used as the horizontal filter pass scratch. All buffers must be size >= w * h and must not alias.

Parameters
grayInput span, size w * h.
dxOutput horizontal gradient, size >= w * h.
dyOutput vertical gradient, size >= w * h.
tmpScratch span for separable filter pass, size >= w * h.
wImage width in pixels.
hImage height in pixels.

Definition at line 66 of file Gradient.cpp.

70{
71 gradient_into_buffers(gray, dx, dy, tmp, w, h, K::sobel_kx, K::sobel_ky);
72}
uint32_t h
Definition InkPress.cpp:28

References h, MayaFlux::Kinesis::Vision::Kernels::sobel_kx, and MayaFlux::Kinesis::Vision::Kernels::sobel_ky.

Referenced by canny(), harris_response(), harris_response(), MayaFlux::Kinesis::Vision::VisionExecutor::run(), sobel(), and track_keypoints().

+ Here is the caller graph for this function: