Class MatND<TDepth>
A MatND is a wrapper to cvMatND of OpenCV.
public class MatND<TDepth> : CvArray<TDepth>, IXmlSerializable, IInputOutputArray, IInputArrayOfArrays, IOutputArrayOfArrays, IOutputArray, IInputArray, IDisposable, ISerializable, IEquatable<MatND<TDepth>> where TDepth : new()
Type Parameters
TDepth
The type of depth
- Inheritance
-
CvArray<TDepth>MatND<TDepth>
- Implements
-
IXmlSerializableIEquatable<MatND<TDepth>>
- Inherited Members
- Extension Methods
Constructors
MatND(params int[])
Create a N-dimensional matrix
public MatND(params int[] sizes)
Parameters
sizes
int[]The size for each dimension
MatND(SerializationInfo, StreamingContext)
Constructor used to deserialize runtime serialized object
public MatND(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfoThe serialization info
context
StreamingContextThe streaming context
Properties
CvDepth
Get the depth representation for Open CV
protected static DepthType CvDepth { get; }
Property Value
MCvMatND
The MCvMatND structure
public MCvMatND MCvMatND { get; }
Property Value
ManagedArray
Get the underneath managed array
public override Array ManagedArray { get; set; }
Property Value
NumberOfChannels
This function is not implemented for MatND
public override int NumberOfChannels { get; }
Property Value
Methods
AllocateData(int, int, int)
This function is not implemented for MatND
protected override void AllocateData(int rows, int cols, int numberOfChannels)
Parameters
Convert<TOtherDepth>()
Convert this matrix to different depth
public MatND<TOtherDepth> Convert<TOtherDepth>() where TOtherDepth : new()
Returns
- MatND<TOtherDepth>
Matrix of different depth
Type Parameters
TOtherDepth
The depth type to convert to
DeserializeObjectData(SerializationInfo, StreamingContext)
A function used for runtime deserailization of the object
protected override void DeserializeObjectData(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfoSerialization info
context
StreamingContextStreaming context
DisposeObject()
Release the matrix and all the memory associate with it
protected override void DisposeObject()
Equals(MatND<TDepth>)
Check if the two MatND are equal
public bool Equals(MatND<TDepth> other)
Parameters
other
MatND<TDepth>The other MatND to compares to
Returns
- bool
True if the two MatND equals
GetObjectData(SerializationInfo, StreamingContext)
A function used for runtime serialization of the object
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfoSerialization info
context
StreamingContextStreaming context
ReadXml(XmlReader)
Not Implemented
public override void ReadXml(XmlReader reader)
Parameters
reader
XmlReaderThe XmlReader
WriteXml(XmlWriter)
Not Implemented
public override void WriteXml(XmlWriter writer)
Parameters
writer
XmlWriterThe XmlWriter