MaskVisualizer<T>

Models & Types · AiDotNet.ComputerVision.Visualization

Visualizes instance segmentation results on images.

For Beginners

This class overlays colored masks and bounding boxes on images to visualize instance segmentation results.

Constructors

Constructor Summary
MaskVisualizer(VisualizationOptions options) Creates a new mask visualizer.

Methods

Method Summary
Tensor<T> CreateSemanticMap(InstanceSegmentationResult<T> result, int height, int width) Creates a combined semantic segmentation map from instances.
Tensor<T> Visualize(Tensor<T> image, InstanceSegmentationResult<T> result, string[] classNames) Draws instance segmentation results on an image.
Tensor<T> VisualizeMasksOnly(Tensor<T> image, InstanceSegmentationResult<T> result) Draws only the mask overlay without bounding boxes.
int[] CreateInstanceIdMap(InstanceSegmentationResult<T> result, int height, int width) Creates an instance ID map where each pixel contains the instance index.