| MatPyrMeanShiftFiltering Method  | 
        
         
            Performs initial step of meanshift segmentation of an image.
            The source matrix is 8-bit, 3-channel image.
            
 
    Namespace: 
   OpenCvSharp
    Assembly:
   OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
 Syntax
Syntaxpublic Mat PyrMeanShiftFiltering(
	double sp,
	double sr,
	int maxLevel = 1,
	Nullable<TermCriteria> termcrit = null
)
Public Function PyrMeanShiftFiltering ( 
	sp As Double,
	sr As Double,
	Optional maxLevel As Integer = 1,
	Optional termcrit As Nullable(Of TermCriteria) = Nothing
) As Mat
public:
Mat^ PyrMeanShiftFiltering(
	double sp, 
	double sr, 
	int maxLevel = 1, 
	Nullable<TermCriteria> termcrit = nullptr
)
member PyrMeanShiftFiltering : 
        sp : float * 
        sr : float * 
        ?maxLevel : int * 
        ?termcrit : Nullable<TermCriteria> 
(* Defaults:
        let _maxLevel = defaultArg maxLevel 1
        let _termcrit = defaultArg termcrit null
*)
-> Mat 
function PyrMeanShiftFiltering(sp, sr, maxLevel, termcrit);
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: 
MatThe destination image of the same format and the same size as the source.
 See Also
See Also