Table of Contents

Constructor ReduceParams

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

ReduceParams(ReduceTypes, int[]?, bool, int)

Creates options for reducing an n-dimensional array.

public ReduceParams(ReduceTypes rtype = ReduceTypes.Sum, int[]? axes = null, bool keepDims = true, int dtype = -1)

Parameters

rtype ReduceTypes

The reduction operation.

axes int[]

Axes to reduce. A null or empty array reduces all axes.

keepDims bool

Keep the reduced axes with a size of one.

dtype int

Output depth. A negative value preserves the input depth.