OpenCvSharp.Blob.CvBlobLib.FilterByLabel C# (CSharp) Method

FilterByLabel() public static method

Filter blobs by label. Delete all blobs except those with label l.
public static FilterByLabel ( CvBlobs blobs, int label ) : void
blobs CvBlobs List of blobs.
label int Label to leave.
return void
        public static void FilterByLabel(CvBlobs blobs, int label)
        {
            if (blobs == null)
                throw new ArgumentNullException(nameof(blobs));
            blobs.FilterByLabel(label);
        }