Mat Class |
Namespace: Emgu.CV
The Mat type exposes the following members.
Name | Description | |
---|---|---|
![]() | Mat |
Create an empty cv::Mat
|
![]() | Mat(SerializationInfo, StreamingContext) |
Constructor used to deserialize runtime serialized object
|
![]() | Mat(String, ImreadModes) |
Load the Mat from file
|
![]() | Mat(Mat, Rectangle) |
Create a mat header for the specific ROI
|
![]() | Mat(Size, DepthType, Int32) |
Create a mat of the specific type.
|
![]() | Mat(Mat, Range, Range) |
Create a mat header for the specific ROI
|
![]() | Mat(Int32, Int32, DepthType, Int32) |
Create a mat of the specific type.
|
![]() | Mat(Int32, DepthType, IntPtr, IntPtr) |
Create multi-dimension mat using existing data.
|
![]() | Mat(Size, DepthType, Int32, IntPtr, Int32) |
Create a Mat header from existing data
|
![]() | Mat(Int32, Int32, DepthType, Int32, IntPtr, Int32) |
Create a Mat header from existing data
|
Name | Description | |
---|---|---|
![]() | Cols |
The number of columns
|
![]() | DataPointer |
Pointer to the beginning of the raw data
|
![]() | Depth |
Depth type
|
![]() | Dims |
The matrix dimensionality
|
![]() | ElementSize |
The size of the elements in this matrix
|
![]() | Height |
Get the height of the mat.
|
![]() | IsContinuous |
True if the data is continues
|
![]() | IsEmpty |
True if the Mat is empty
|
![]() | IsSubmatrix |
True if the matrix is a submatrix of another matrix
|
![]() | NumberOfChannels |
Number of channels
|
![]() | Ptr |
Pointer to the unmanaged object
(Inherited from UnmanagedObject.) |
![]() | Rows |
The number of rows
|
![]() | Size |
The size of this matrix
|
![]() | SizeOfDimension |
Get an array of the size of the dimensions. e.g. if the mat is 9x10x11, the array of {9, 10, 11} will be returned.
|
![]() | Step |
Step
|
![]() | Total |
The method returns the number of array elements (a number of pixels if the array represents an image)
|
![]() | Width |
Get the width of the mat
|
Name | Description | |
---|---|---|
![]() | Clone |
Make a clone of the current Mat
|
![]() | Col |
Creates a matrix header for the specified matrix column.
|
![]() | ConvertTo |
Converts an array to another data type with optional scaling.
|
![]() | CopyTo(IOutputArray, IInputArray) |
Copy the data in this cv::Mat to an output array
|
![]() | CopyToT(T) |
Copy data from this Mat to the managed array
|
![]() | Create |
Allocates new array data if needed.
|
![]() | Cross |
Computes a cross-product of two 3-element vectors.
|
![]() | DeserializeObjectData |
A function used for runtime deserailization of the object
|
![]() | Diag |
Extracts a diagonal from a matrix. The method makes a new header for the specified matrix diagonal. The new matrix is represented as a single-column matrix. Similarly to Mat::row and Mat::col, this is an O(1) operation.
|
![]() | Dispose |
The dispose function that implements IDisposable interface
(Inherited from DisposableObject.) |
![]() | DisposeObject |
Release all the unmanaged memory associated with this object.
(Overrides DisposableObjectDisposeObject.) |
![]() | Dot |
Computes a dot-product of two vectors.
|
![]() | Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Equals(Mat) |
Compares two Mats and check if they are equal
|
![]() ![]() | Eye |
Returns an identity matrix of the specified size and type.
|
![]() | Finalize |
Destructor
(Inherited from DisposableObject.) |
![]() | GetData |
Get a copy of the data values as an array
|
![]() | GetDataPointer |
Get a pointer to the raw data given the specific index
|
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetInputArray |
Pointer to the InputArray
|
![]() | GetInputOutputArray |
Pointer to the InputOutputArray
|
![]() | GetObjectData |
A function used for runtime serialization of the object
|
![]() | GetOutputArray |
Pointer to the OutputArray
|
![]() | GetRawData |
Gets the binary data from the specific indices.
|
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | GetUMat |
Convert this Mat to UMat
|
![]() | GetValueRange |
Get the minimum and maximum value across all channels of the mat
|
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | MinMax |
Returns the min / max location and values for the image
|
![]() ![]() | Ones |
Returns an array of all 1's of the specified size and type.
|
![]() | PopBack |
The method removes one or more rows from the bottom of the matrix
|
![]() | PushBack |
Adds elements to the bottom of the matrix
|
![]() | ReleaseManagedResources |
Release the managed resources. This function will be called during the disposal of the current object.
override ride this function if you need to call the Dispose() function on any managed IDisposable object created by the current object
(Inherited from DisposableObject.) |
![]() | Reshape |
Changes the shape and/or the number of channels of a 2D matrix without copying the data.
|
![]() | Row |
Creates a matrix header for the specified matrix row.
|
![]() | Save |
Save this image to the specific file.
|
![]() | SetTo(IInputArray, IInputArray) |
Set the mat to the specific value
|
![]() | SetTo(MCvScalar, IInputArray) |
Set the mat to the specific value
|
![]() | SetToT(T) |
Copy data from managed array to this Mat
|
![]() | Split |
Split current Image into an array of gray scale images where each element
in the array represent a single color channel of the original image
|
![]() | T |
Transposes a matrix.
|
![]() | ToImageTColor, TDepth |
Convert this Mat to Image
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() ![]() | Zeros |
Returns a zero array of the specified size and type.
|
Name | Description | |
---|---|---|
![]() ![]() | Addition(Double, Mat) |
Element wise add mat1 with value |
![]() ![]() | Addition(Mat, Mat) |
Element wise add mat1 with mat2 |
![]() ![]() | Addition(Mat, MCvScalar) |
Element wise add mat with value |
![]() ![]() | Addition(Mat, Double) |
Element wise add mat with value |
![]() ![]() | Addition(MCvScalar, Mat) |
Element wise add mat with value |
![]() ![]() | BitwiseAnd(Double, Mat) |
Perform an element wise AND operation using a mat and a color
|
![]() ![]() | BitwiseAnd(Mat, Mat) |
Perform an element wise AND operation on the two mats
|
![]() ![]() | BitwiseAnd(Mat, MCvScalar) |
Perform an element wise AND operation using a mat and a scalar
|
![]() ![]() | BitwiseAnd(Mat, Double) |
Perform an element wise AND operation using a mat and a scalar
|
![]() ![]() | BitwiseAnd(MCvScalar, Mat) |
Perform an element wise AND operation using a mat and a scalar
|
![]() ![]() | BitwiseOr(Double, Mat) |
Perform an binary OR operation with some color
|
![]() ![]() | BitwiseOr(Mat, Mat) | Perform an element wise OR operation with another mat and return the result |
![]() ![]() | BitwiseOr(Mat, MCvScalar) |
Perform an binary OR operation with some scalar
|
![]() ![]() | BitwiseOr(Mat, Double) |
Perform an binary OR operation with some value
|
![]() ![]() | BitwiseOr(MCvScalar, Mat) |
Perform an binary OR operation with some scalar
|
![]() ![]() | Division(Double, Mat) | scale / mat |
![]() ![]() | Division(Mat, Double) | mat / scale |
![]() ![]() | Multiply(Double, Mat) | scale*mat |
![]() ![]() | Multiply(Mat, Double) | mat * scale |
![]() ![]() | OnesComplement | Compute the complement Mat |
![]() ![]() | Subtraction(Double, Mat) | value - mat |
![]() ![]() | Subtraction(Mat, Mat) |
Element wise subtract another mat from the current mat
|
![]() ![]() | Subtraction(Mat, MCvScalar) |
Element wise subtract another mat from the current mat
|
![]() ![]() | Subtraction(Mat, Double) |
Element wise subtract value from the current mat
|
![]() ![]() | Subtraction(MCvScalar, Mat) |
Element wise subtract value from the current mat
|
Name | Description | |
---|---|---|
![]() | _ptr |
A pointer to the unmanaged object
(Inherited from UnmanagedObject.) |
Name | Description | |
---|---|---|
![]() | ForEachDuplicateChannel(ActionIInputArray, Int32) | Overloaded.
Apply converter and compute result for each channel of the image, for single channel image, apply converter directly, for multiple channel image, make a copy of each channel to a temperary image and apply the convertor
(Defined by IInputArrayExtensions.) |
![]() | ForEachDuplicateChannelTReturn(FuncIInputArray, Int32, TReturn) | Overloaded.
Apply converter and compute result for each channel of the image, for single channel image, apply converter directly, for multiple channel image, make a copy of each channel to a temperary image and apply the convertor
(Defined by IInputArrayExtensions.) |
![]() | IsUmat |
Determines whether the specified input array is umat.
(Defined by IInputArrayExtensions.) |
![]() | ToBitmap | Overloaded.
Convert the mat into Bitmap, the pixel values are copied over to the Bitmap
(Defined by BitmapExtension.) |
![]() | ToBitmap | Overloaded. (Defined by BitmapExtension.) |