Table of Contents

Method EnforceLabelConnectivity

Namespace
OpenCvSharp.XImgProc
Assembly
OpenCvSharp.dll

EnforceLabelConnectivity(int)

Enforce label connectivity.

The function merge component that is too small, assigning the previously found adjacent label to this component.Calling this function may change the final number of superpixels.

public virtual void EnforceLabelConnectivity(int minElementSize = 20)

Parameters

minElementSize int

The minimum element size in percents that should be absorbed into a bigger superpixel.Given resulted average superpixel size valid value should be in 0-100 range, 25 means that less then a quarter sized superpixel should be absorbed, this is default.