| 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
)
Public Shared Function CreateSuperpixelLSC (
image As InputArray,
Optional regionSize As Integer = 10,
Optional ratio As Single = 0.075F
) As SuperpixelLSC
public:
static SuperpixelLSC^ CreateSuperpixelLSC(
InputArray^ image,
int regionSize = 10,
float ratio = 0.075f
)
static member CreateSuperpixelLSC :
image : InputArray *
?regionSize : int *
?ratio : float32
(* Defaults:
let _regionSize = defaultArg regionSize 10
let _ratio = defaultArg ratio 0.075f
*)
-> SuperpixelLSC
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