MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Kinesis::Vision::ConnectedComponentsParams Struct Reference

Connected-component label export and color output. More...

#include <VisionOp.hpp>

+ Collaboration diagram for MayaFlux::Kinesis::Vision::ConnectedComponentsParams:

Public Attributes

bool export_boxes { false }
 
bool export_label_buffer { false }
 
bool export_labels { false }
 
bool with_colors { false }
 

Detailed Description

Connected-component label export and color output.

CPU always returns component counts and bounding boxes. export_labels also retains the per-pixel host label_map; otherwise labels remain internal when the next step extracts contours. with_colors produces a pixel-precision, opaque RGBA host image in pixel_image, with black background and one color per foreground label. Subsequent steps may replace that image.

GPU export_labels requests a device label map and with_colors selects the device color image in VisionResult::images.component_colors. When FindContours follows in the same sequence, the box readback is skipped unless export_boxes or export_label_buffer asks for it, since FindContours needs neither.

export_boxes populates VisionResult::component_boxes even when FindContours follows, for joining a Contour back to its box via Contour::label_id. export_label_buffer's label map is consumed via VisionGpuExecutor::select_label(), not decoded to a host list.

Definition at line 302 of file VisionOp.hpp.


The documentation for this struct was generated from the following file: