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

◆ filter_separable() [1/2]

MAYAFLUX_API void MayaFlux::Kinesis::Vision::filter_separable ( std::span< const float >  src,
std::span< float >  tmp,
std::span< float >  dst,
uint32_t  w,
uint32_t  h,
std::span< const float >  kernel_x,
std::span< const float >  kernel_y 
)

Separable 2D filter writing into caller-supplied buffers.

Horizontal pass writes into tmp, vertical pass writes into dst. All three spans must be size >= w * h and must not alias each other.

Parameters
srcInput span, size w * h.
tmpScratch span for horizontal pass, size >= w * h.
dstOutput span, size >= w * h.
wImage width in pixels.
hImage height in pixels.
kernel_xHorizontal 1D kernel, odd length.
kernel_yVertical 1D kernel, odd length.

Definition at line 500 of file ImageFilter.cpp.

507{
508 convolve_horizontal(src, tmp, w, h, kernel_x);
509 convolve_vertical(tmp, dst, w, h, kernel_y);
510}
uint32_t h
Definition InkPress.cpp:28

References h.