Table of Contents

Method SetWeights

Namespace
OpenCvSharp.Segmentation
Assembly
OpenCvSharp.dll

SetWeights(float, float, float)

Specify weights of feature functions

Consider keeping weights normalized (sum of weights equals to 1.0) Discrete dynamic programming (DP) goal is minimization of costs between pixels.

public IntelligentScissorsMB SetWeights(float weightNonEdge, float weightGradientDirection, float weightGradientMagnitude)

Parameters

weightNonEdge float

Specify cost of non-edge pixels (default: 0.43f)

weightGradientDirection float

Specify cost of gradient direction function (default: 0.43f)

weightGradientMagnitude float

Specify cost of gradient magnitude function (default: 0.14f)

Returns

IntelligentScissorsMB