Method SetGradientMagnitudeMaxLimit
- Namespace
- OpenCvSharp.Segmentation
- Assembly
- OpenCvSharp.dll
SetGradientMagnitudeMaxLimit(float)
Specify gradient magnitude max value threshold
Zero limit value is used to disable gradient magnitude thresholding (default behavior, as described in original article).
Otherwize pixels with gradient magnitude >= threshold have zero cost.
@note Thresholding should be used for images with irregular regions (to avoid stuck on parameters from high-contract areas, like embedded logos).
public IntelligentScissorsMB SetGradientMagnitudeMaxLimit(float gradientMagnitudeThresholdMax = 0)
Parameters
gradientMagnitudeThresholdMaxfloatSpecify gradient magnitude max value threshold (default: 0, disabled)