Table of Contents

Method PyrMeanShiftFiltering

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

PyrMeanShiftFiltering(InputArray, OutputArray, double, double, int, TermCriteria?)

Performs initial step of meanshift segmentation of an image.

public static void PyrMeanShiftFiltering(InputArray src, OutputArray dst, double sp, double sr, int maxLevel = 1, TermCriteria? termcrit = null)

Parameters

src InputArray

The source 8-bit, 3-channel image.

dst OutputArray

The destination image of the same format and the same size as the source.

sp double

The spatial window radius.

sr double

The color window radius.

maxLevel int

Maximum level of the pyramid for the segmentation.

termcrit TermCriteria?

Termination criteria: when to stop meanshift iterations.