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
weightNonEdgefloatSpecify cost of non-edge pixels (default: 0.43f)
weightGradientDirectionfloatSpecify cost of gradient direction function (default: 0.43f)
weightGradientMagnitudefloatSpecify cost of gradient magnitude function (default: 0.14f)