Table of Contents

Struct MatType

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Matrix data type (depth and number of channels)

public readonly record struct MatType : IEquatable<int>, IEquatable<MatType>
Implements
Inherited Members

Constructors

MatType(int)

Matrix data type (depth and number of channels)

Fields

CV_16BF

type depth constants

CV_16BFC1

predefined type constants

CV_16BFC2

predefined type constants

CV_16BFC3

predefined type constants

CV_16BFC4

predefined type constants

CV_16F

type depth constants

CV_16FC1

predefined type constants

CV_16FC2

predefined type constants

CV_16FC3

predefined type constants

CV_16FC4

predefined type constants

CV_16S

type depth constants

CV_16SC1

predefined type constants

CV_16SC2

predefined type constants

CV_16SC3

predefined type constants

CV_16SC4

predefined type constants

CV_16U

type depth constants

CV_16UC1

predefined type constants

CV_16UC2

predefined type constants

CV_16UC3

predefined type constants

CV_16UC4

predefined type constants

CV_32F

type depth constants

CV_32FC1

predefined type constants

CV_32FC2

predefined type constants

CV_32FC3

predefined type constants

CV_32FC4

predefined type constants

CV_32S

type depth constants

CV_32SC1

predefined type constants

CV_32SC2

predefined type constants

CV_32SC3

predefined type constants

CV_32SC4

predefined type constants

CV_32U

type depth constants

CV_32UC1

predefined type constants

CV_32UC2

predefined type constants

CV_32UC3

predefined type constants

CV_32UC4

predefined type constants

CV_64F

type depth constants

CV_64FC1

predefined type constants

CV_64FC2

predefined type constants

CV_64FC3

predefined type constants

CV_64FC4

predefined type constants

CV_64S

type depth constants

CV_64SC1

predefined type constants

CV_64SC2

predefined type constants

CV_64SC3

predefined type constants

CV_64SC4

predefined type constants

CV_64U

type depth constants

CV_64UC1

predefined type constants

CV_64UC2

predefined type constants

CV_64UC3

predefined type constants

CV_64UC4

predefined type constants

CV_8S

type depth constants

CV_8SC1

predefined type constants

CV_8SC2

predefined type constants

CV_8SC3

predefined type constants

CV_8SC4

predefined type constants

CV_8U

type depth constants

CV_8UC1

predefined type constants

CV_8UC2

predefined type constants

CV_8UC3

predefined type constants

CV_8UC4

predefined type constants

CV_Bool

type depth constants

CV_BoolC1

predefined type constants

CV_BoolC2

predefined type constants

CV_BoolC3

predefined type constants

CV_BoolC4

predefined type constants

CV_USRTYPE1

type depth constants

Properties

Channels
Depth
IsInteger

Returns true if the depth is an integer type. Mirrors OpenCV's CV_IS_INT_TYPE: integer depths are CV_8U, CV_8S, CV_16U, CV_16S, CV_32S, CV_Bool, CV_64U, CV_64S and CV_32U (the bitmask 0x1e1f), while CV_32F, CV_64F, CV_16F and CV_16BF are floating-point.

Value

Entity value

Methods

CV_16BFC(int)
CV_16FC(int)
CV_16SC(int)
CV_16UC(int)
CV_32FC(int)
CV_32SC(int)
CV_32UC(int)
CV_64FC(int)
CV_64SC(int)
CV_64UC(int)
CV_8SC(int)
CV_8UC(int)
CV_BoolC(int)
Equals(int)

Indicates whether the current object is equal to another object of the same type.

FromInt32(int)
MakeType(int, int)
ToInt32()
ToString()

Returns the fully qualified type name of this instance.

Operators

operator ==(MatType, int)
explicit operator int(MatType)
implicit operator MatType(int)
operator !=(MatType, int)