| SuperpixelLSCEnforceLabelConnectivity Method |
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.
Namespace:
OpenCvSharp.XImgProc
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public virtual void EnforceLabelConnectivity(
int minElementSize = 20
)
Public Overridable Sub EnforceLabelConnectivity (
Optional minElementSize As Integer = 20
)
public:
virtual void EnforceLabelConnectivity(
int minElementSize = 20
)
abstract EnforceLabelConnectivity :
?minElementSize : int
(* Defaults:
let _minElementSize = defaultArg minElementSize 20
*)
-> unit
override EnforceLabelConnectivity :
?minElementSize : int
(* Defaults:
let _minElementSize = defaultArg minElementSize 20
*)
-> unit
Parameters
- minElementSize (Optional)
- Type: SystemInt32
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.
See Also