Table of Contents

Method GetLabels

Namespace
OpenCvSharp.XImgProc
Assembly
OpenCvSharp.dll

GetLabels(OutputArray)

Returns the segmentation labeling of the image. Each label represents a superpixel, and each pixel is assigned to one superpixel label.

The function returns an image with ssthe labels of the superpixel segmentation. The labels are in the range[0, getNumberOfSuperpixels()].

public virtual void GetLabels(OutputArray labelsOut)

Parameters

labelsOut OutputArray

Return: A CV_32UC1 integer array containing the labels of the superpixel segmentation.The labels are in the range[0, getNumberOfSuperpixels()].