Click or drag to resize

CvXImgProcCreateSuperpixelLSC Method

Class implementing the LSC (Linear Spectral Clustering) superpixels. The function initializes a SuperpixelLSC object for the input image. It sets the parameters of superpixel algorithm, which are: region_size and ruler.It preallocate some buffers for future computing iterations over the given image.An example of LSC is illustrated in the following picture. For enhanced results it is recommended for color images to preprocess image with little gaussian blur with a small 3 x 3 kernel and additional conversion into CieLAB color space.

Namespace:  OpenCvSharp.XImgProc
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static SuperpixelLSC CreateSuperpixelLSC(
	InputArray image,
	int regionSize = 10,
	float ratio = 0.075f
)

Parameters

image
Type: OpenCvSharpInputArray
image Image to segment
regionSize (Optional)
Type: SystemInt32
Chooses an average superpixel size measured in pixels
ratio (Optional)
Type: SystemSingle
Chooses the enforcement of superpixel compactness factor of superpixel

Return Value

Type: SuperpixelLSC

[Missing <returns> documentation for "M:OpenCvSharp.XImgProc.CvXImgProc.CreateSuperpixelLSC(OpenCvSharp.InputArray,System.Int32,System.Single)"]

See Also