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
valueint
Fields
CV_16S
type depth constants
public const int CV_16S = 3
Field Value
CV_16SC1
predefined type constants
public static readonly MatType CV_16SC1
Field Value
CV_16SC2
predefined type constants
public static readonly MatType CV_16SC2
Field Value
CV_16SC3
predefined type constants
public static readonly MatType CV_16SC3
Field Value
CV_16SC4
predefined type constants
public static readonly MatType CV_16SC4
Field Value
CV_16U
type depth constants
public const int CV_16U = 2
Field Value
CV_16UC1
predefined type constants
public static readonly MatType CV_16UC1
Field Value
CV_16UC2
predefined type constants
public static readonly MatType CV_16UC2
Field Value
CV_16UC3
predefined type constants
public static readonly MatType CV_16UC3
Field Value
CV_16UC4
predefined type constants
public static readonly MatType CV_16UC4
Field Value
CV_32F
type depth constants
public const int CV_32F = 5
Field Value
CV_32FC1
predefined type constants
public static readonly MatType CV_32FC1
Field Value
CV_32FC2
predefined type constants
public static readonly MatType CV_32FC2
Field Value
CV_32FC3
predefined type constants
public static readonly MatType CV_32FC3
Field Value
CV_32FC4
predefined type constants
public static readonly MatType CV_32FC4
Field Value
CV_32S
type depth constants
public const int CV_32S = 4
Field Value
CV_32SC1
predefined type constants
public static readonly MatType CV_32SC1
Field Value
CV_32SC2
predefined type constants
public static readonly MatType CV_32SC2
Field Value
CV_32SC3
predefined type constants
public static readonly MatType CV_32SC3
Field Value
CV_32SC4
predefined type constants
public static readonly MatType CV_32SC4
Field Value
CV_64F
type depth constants
public const int CV_64F = 6
Field Value
CV_64FC1
predefined type constants
public static readonly MatType CV_64FC1
Field Value
CV_64FC2
predefined type constants
public static readonly MatType CV_64FC2
Field Value
CV_64FC3
predefined type constants
public static readonly MatType CV_64FC3
Field Value
CV_64FC4
predefined type constants
public static readonly MatType CV_64FC4
Field Value
CV_8S
type depth constants
public const int CV_8S = 1
Field Value
CV_8SC1
predefined type constants
public static readonly MatType CV_8SC1
Field Value
CV_8SC2
predefined type constants
public static readonly MatType CV_8SC2
Field Value
CV_8SC3
predefined type constants
public static readonly MatType CV_8SC3
Field Value
CV_8SC4
predefined type constants
public static readonly MatType CV_8SC4
Field Value
CV_8U
type depth constants
public const int CV_8U = 0
Field Value
CV_8UC1
predefined type constants
public static readonly MatType CV_8UC1
Field Value
CV_8UC2
predefined type constants
public static readonly MatType CV_8UC2
Field Value
CV_8UC3
predefined type constants
public static readonly MatType CV_8UC3
Field Value
CV_8UC4
predefined type constants
public static readonly MatType CV_8UC4
Field Value
CV_USRTYPE1
type depth constants
public const int CV_USRTYPE1 = 7
Field Value
Properties
Channels
public int Channels { get; }
Property Value
Depth
public int Depth { get; }
Property Value
IsInteger
public bool IsInteger { get; }
Property Value
Value
Entity value
public int Value { get; }
Property Value
Methods
CV_16SC(int)
public static MatType CV_16SC(int ch)
Parameters
chint
Returns
CV_16UC(int)
public static MatType CV_16UC(int ch)
Parameters
chint
Returns
CV_32FC(int)
public static MatType CV_32FC(int ch)
Parameters
chint
Returns
CV_32SC(int)
public static MatType CV_32SC(int ch)
Parameters
chint
Returns
CV_64FC(int)
public static MatType CV_64FC(int ch)
Parameters
chint
Returns
CV_8SC(int)
public static MatType CV_8SC(int ch)
Parameters
chint
Returns
CV_8UC(int)
public static MatType CV_8UC(int ch)
Parameters
chint
Returns
Equals(int)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(int other)
Parameters
otherintAn object to compare with this object.
Returns
FromInt32(int)
public static MatType FromInt32(int value)
Parameters
valueint
Returns
MakeType(int, int)
public static MatType MakeType(int depth, int channels)
Parameters
Returns
ToInt32()
public int ToInt32()
Returns
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
Returns
explicit operator int(MatType)
public static explicit operator int(MatType self)
Parameters
selfMatType
Returns
implicit operator MatType(int)
public static implicit operator MatType(int value)
Parameters
valueint
Returns
operator !=(MatType, int)
public static bool operator !=(MatType self, int other)