Table of Contents

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

nonEdge InputArray

Specify cost of non-edge pixels. Type is CV_8UC1. Expected values are {0, 1}.

gradientDirection InputArray

Specify gradient direction feature. Type is CV_32FC2. Values are expected to be normalized: x^2 + y^2 == 1

gradientMagnitude InputArray

Specify cost of gradient magnitude function: Type is CV_32FC1. Values should be in range [0, 1].

image InputArray

Optional parameter. Must be specified if subset of features is specified (non-specified features are calculated internally)

Returns

IntelligentScissorsMB