Method ApplyImageFeatures
- Namespace
- OpenCvSharp.Segmentation
- Assembly
- OpenCvSharp.dll
ApplyImageFeatures(InputArray, InputArray, InputArray, InputArray)
Specify custom features of imput image Customized advanced variant of applyImage() call.
public IntelligentScissorsMB ApplyImageFeatures(InputArray nonEdge, InputArray gradientDirection, InputArray gradientMagnitude, InputArray image = default)
Parameters
nonEdgeInputArraySpecify cost of non-edge pixels. Type is CV_8UC1. Expected values are
{0, 1}.gradientDirectionInputArraySpecify gradient direction feature. Type is CV_32FC2. Values are expected to be normalized:
x^2 + y^2 == 1gradientMagnitudeInputArraySpecify cost of gradient magnitude function: Type is CV_32FC1. Values should be in range
[0, 1].imageInputArrayOptional parameter. Must be specified if subset of features is specified (non-specified features are calculated internally)