MatPyrMeanShiftFiltering Method OpenCvSharp Class Library
Performs initial step of meanshift segmentation of an image. The source matrix is 8-bit, 3-channel image.

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public Mat PyrMeanShiftFiltering(
	double sp,
	double sr,
	int maxLevel = 1,
	Nullable<TermCriteria> termcrit = null
)

Parameters

sp
Type: SystemDouble
The spatial window radius.
sr
Type: SystemDouble
The color window radius.
maxLevel (Optional)
Type: SystemInt32
Maximum level of the pyramid for the segmentation.
termcrit (Optional)
Type: SystemNullableTermCriteria
Termination criteria: when to stop meanshift iterations.

Return Value

Type: Mat
The destination image of the same format and the same size as the source.
See Also

Reference