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

◆ dilate() [2/2]

MAYAFLUX_API std::vector< float > MayaFlux::Kinesis::Vision::dilate ( std::span< const float >  mask,
uint32_t  w,
uint32_t  h,
uint32_t  radius 
)

Morphological dilation with square structuring element.

A pixel is 1.0f if any pixel within radius is foreground.

Parameters
maskSingle-channel float span, size must be w * h.
wImage width in pixels.
hImage height in pixels.
radiusStructuring element half-size in pixels.
Returns
Dilated binary float vector of length w * h.

Definition at line 102 of file Morphology.cpp.

103{
104 std::vector<float> out(static_cast<size_t>(w) * h);
105 dilate(mask, out, w, h, radius);
106 return out;
107}
float radius
uint32_t h
Definition InkPress.cpp:29
std::vector< float > * out

References dilate(), h, out, and radius.

+ Here is the call graph for this function: