Method CreateScanSegment
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
CreateScanSegment(int, int, int, int, bool)
Initializes a ScanSegment object.
public static ScanSegment CreateScanSegment(int imageWidth, int imageHeight, int numSuperpixels, int slices = 8, bool mergeSmall = true)
Parameters
imageWidthintImage width.
imageHeightintImage height.
numSuperpixelsintDesired number of superpixels. Note that the actual number may be smaller due to restrictions (depending on the image size). Use GetNumberOfSuperpixels() to get the actual number.
slicesintNumber of processing threads for parallelisation. Setting -1 uses the maximum number of threads.
mergeSmallboolMerge small segments to give the desired number of superpixels.