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)

public MatType(int value)

Parameters

value int

Fields

CV_16S

type depth constants

public const int CV_16S = 3

Field Value

int

CV_16SC1

predefined type constants

public static readonly MatType CV_16SC1

Field Value

MatType

CV_16SC2

predefined type constants

public static readonly MatType CV_16SC2

Field Value

MatType

CV_16SC3

predefined type constants

public static readonly MatType CV_16SC3

Field Value

MatType

CV_16SC4

predefined type constants

public static readonly MatType CV_16SC4

Field Value

MatType

CV_16U

type depth constants

public const int CV_16U = 2

Field Value

int

CV_16UC1

predefined type constants

public static readonly MatType CV_16UC1

Field Value

MatType

CV_16UC2

predefined type constants

public static readonly MatType CV_16UC2

Field Value

MatType

CV_16UC3

predefined type constants

public static readonly MatType CV_16UC3

Field Value

MatType

CV_16UC4

predefined type constants

public static readonly MatType CV_16UC4

Field Value

MatType

CV_32F

type depth constants

public const int CV_32F = 5

Field Value

int

CV_32FC1

predefined type constants

public static readonly MatType CV_32FC1

Field Value

MatType

CV_32FC2

predefined type constants

public static readonly MatType CV_32FC2

Field Value

MatType

CV_32FC3

predefined type constants

public static readonly MatType CV_32FC3

Field Value

MatType

CV_32FC4

predefined type constants

public static readonly MatType CV_32FC4

Field Value

MatType

CV_32S

type depth constants

public const int CV_32S = 4

Field Value

int

CV_32SC1

predefined type constants

public static readonly MatType CV_32SC1

Field Value

MatType

CV_32SC2

predefined type constants

public static readonly MatType CV_32SC2

Field Value

MatType

CV_32SC3

predefined type constants

public static readonly MatType CV_32SC3

Field Value

MatType

CV_32SC4

predefined type constants

public static readonly MatType CV_32SC4

Field Value

MatType

CV_64F

type depth constants

public const int CV_64F = 6

Field Value

int

CV_64FC1

predefined type constants

public static readonly MatType CV_64FC1

Field Value

MatType

CV_64FC2

predefined type constants

public static readonly MatType CV_64FC2

Field Value

MatType

CV_64FC3

predefined type constants

public static readonly MatType CV_64FC3

Field Value

MatType

CV_64FC4

predefined type constants

public static readonly MatType CV_64FC4

Field Value

MatType

CV_8S

type depth constants

public const int CV_8S = 1

Field Value

int

CV_8SC1

predefined type constants

public static readonly MatType CV_8SC1

Field Value

MatType

CV_8SC2

predefined type constants

public static readonly MatType CV_8SC2

Field Value

MatType

CV_8SC3

predefined type constants

public static readonly MatType CV_8SC3

Field Value

MatType

CV_8SC4

predefined type constants

public static readonly MatType CV_8SC4

Field Value

MatType

CV_8U

type depth constants

public const int CV_8U = 0

Field Value

int

CV_8UC1

predefined type constants

public static readonly MatType CV_8UC1

Field Value

MatType

CV_8UC2

predefined type constants

public static readonly MatType CV_8UC2

Field Value

MatType

CV_8UC3

predefined type constants

public static readonly MatType CV_8UC3

Field Value

MatType

CV_8UC4

predefined type constants

public static readonly MatType CV_8UC4

Field Value

MatType

CV_USRTYPE1

type depth constants

public const int CV_USRTYPE1 = 7

Field Value

int

Properties

Channels

public int Channels { get; }

Property Value

int

Depth

public int Depth { get; }

Property Value

int

IsInteger

public bool IsInteger { get; }

Property Value

bool

Value

Entity value

public int Value { get; }

Property Value

int

Methods

CV_16SC(int)

public static MatType CV_16SC(int ch)

Parameters

ch int

Returns

MatType

CV_16UC(int)

public static MatType CV_16UC(int ch)

Parameters

ch int

Returns

MatType

CV_32FC(int)

public static MatType CV_32FC(int ch)

Parameters

ch int

Returns

MatType

CV_32SC(int)

public static MatType CV_32SC(int ch)

Parameters

ch int

Returns

MatType

CV_64FC(int)

public static MatType CV_64FC(int ch)

Parameters

ch int

Returns

MatType

CV_8SC(int)

public static MatType CV_8SC(int ch)

Parameters

ch int

Returns

MatType

CV_8UC(int)

public static MatType CV_8UC(int ch)

Parameters

ch int

Returns

MatType

Equals(int)

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

public bool Equals(int other)

Parameters

other int

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

FromInt32(int)

public static MatType FromInt32(int value)

Parameters

value int

Returns

MatType

MakeType(int, int)

public static MatType MakeType(int depth, int channels)

Parameters

depth int
channels int

Returns

MatType

ToInt32()

public int ToInt32()

Returns

int

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

Operators

operator ==(MatType, int)

public static bool operator ==(MatType self, int other)

Parameters

self MatType
other int

Returns

bool

explicit operator int(MatType)

public static explicit operator int(MatType self)

Parameters

self MatType

Returns

int

implicit operator MatType(int)

public static implicit operator MatType(int value)

Parameters

value int

Returns

MatType

operator !=(MatType, int)

public static bool operator !=(MatType self, int other)

Parameters

self MatType
other int

Returns

bool