OpenCV for Unity 2.6.3
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.10.0/index.html ) for the details of the argument of the method.
Loading...
Searching...
No Matches
OpenCVForUnity.CoreModule.MatOfByte Class Reference
Inheritance diagram for OpenCVForUnity.CoreModule.MatOfByte:
OpenCVForUnity.CoreModule.Mat OpenCVForUnity.DisposableOpenCVObject OpenCVForUnity.DisposableOpenCVObject OpenCVForUnity.DisposableOpenCVObject OpenCVForUnity.DisposableObject OpenCVForUnity.DisposableObject OpenCVForUnity.DisposableObject

Public Member Functions

 MatOfByte ()
 
 MatOfByte (Mat m)
 
 MatOfByte (params byte[] a)
 
 MatOfByte (int offset, int length, params byte[] a)
 
void alloc (int elemNumber)
 
void fromArray (params byte[] a)
 
void fromArray (int offset, int length, params byte[] a)
 
byte[] toArray ()
 
void fromList (List< byte > lb)
 
List< byte > toList ()
 
- Public Member Functions inherited from OpenCVForUnity.CoreModule.Mat
 Mat (IntPtr addr)
 
 Mat ()
 
 Mat (int rows, int cols, int type)
 
 Mat (Size size, int type)
 
 Mat (int[] sizes, int type)
 
 Mat (int rows, int cols, int type, Scalar s)
 
 Mat (Size size, int type, Scalar s)
 
 Mat (int[] sizes, int type, Scalar s)
 
 Mat (Mat m, Range rowRange, Range colRange)
 
 Mat (Mat m, Range rowRange)
 
 Mat (Mat m, Range[] ranges)
 
 Mat (Mat m, Rect roi)
 
 Mat (int rows, int cols, int type, IntPtr data, long step=AUTO_STEP)
 
 Mat (Size size, int type, IntPtr data, long step=AUTO_STEP)
 
Mat adjustROI (int dtop, int dbottom, int dleft, int dright)
 Adjusts a submatrix size and position within the parent matrix.
 
void assignTo (Mat m, int type)
 Provides a functional form of convertTo.
 
void assignTo (Mat m)
 Provides a functional form of convertTo.
 
int channels ()
 Returns the number of matrix channels.
 
int checkVector (int elemChannels, int depth, bool requireContinuous)
 
int checkVector (int elemChannels, int depth)
 
int checkVector (int elemChannels)
 
Mat clone ()
 Creates a full copy of the array and the underlying data.
 
Mat col (int x)
 Creates a matrix header for the specified matrix column.
 
Mat colRange (int startcol, int endcol)
 Creates a matrix header for the specified column span.
 
Mat colRange (Range r)
 Creates a matrix header for the specified column span.
 
int dims ()
 
int cols ()
 
void convertTo (Mat m, int rtype, double alpha, double beta)
 Converts an array to another data type with optional scaling.
 
void convertTo (Mat m, int rtype, double alpha)
 Converts an array to another data type with optional scaling.
 
void convertTo (Mat m, int rtype)
 Converts an array to another data type with optional scaling.
 
void copyTo (Mat m)
 Copies the matrix to another one.
 
void copyTo (Mat m, Mat mask)
 Copies the matrix to another one.
 
void create (int rows, int cols, int type)
 Allocates new array data if needed.
 
void create (Size size, int type)
 Allocates new array data if needed.
 
void create (int[] sizes, int type)
 Allocates new array data if needed.
 
void copySize (Mat m)
 
Mat cross (Mat m)
 Computes a cross-product of two 3-element vectors.
 
long dataAddr ()
 Returns the first pointer address of Mat data.
 
int depth ()
 Returns the depth of a matrix element.
 
Mat diag (int d)
 Extracts a diagonal from a matrix.
 
Mat diag ()
 Extracts a diagonal from a matrix.
 
double dot (Mat m)
 Computes a dot-product of two vectors.
 
long elemSize ()
 Returns the matrix element size in bytes.
 
long elemSize1 ()
 Returns the size of each matrix element channel in bytes.
 
bool empty ()
 Returns true if the array has no elements.
 
Mat inv (int method)
 Inverses a matrix.
 
Mat inv ()
 Inverses a matrix.
 
bool isContinuous ()
 Reports whether the matrix is continuous or not.
 
bool isSubmatrix ()
 
void locateROI (Size wholeSize, Point ofs)
 Locates the matrix header within a parent matrix.
 
Mat mul (Mat m, double scale)
 Performs an element-wise multiplication or division of the two matrices.
 
Mat mul (Mat m)
 Element-wise multiplication.
 
Mat matMul (Mat m)
 
void push_back (Mat m)
 Adds elements to the bottom of the matrix.
 
void release ()
 Decrements the reference counter and deallocates the matrix if needed.
 
Mat reshape (int cn, int rows)
 Changes the shape and/or the number of channels of a 2D matrix without copying the data.
 
Mat reshape (int cn)
 Changes the shape and/or the number of channels of a 2D matrix without copying the data.
 
Mat reshape (int cn, int[] newshape)
 Changes the shape and/or the number of channels of a 2D matrix without copying the data.
 
Mat row (int y)
 Creates a matrix header for the specified matrix row.
 
Mat rowRange (int startrow, int endrow)
 Creates a matrix header for the specified row span.
 
Mat rowRange (Range r)
 Creates a matrix header for the specified row span.
 
int rows ()
 
Mat setTo (Scalar s)
 Sets all or some of the array elements to the specified value.
 
Mat setTo (Scalar value, Mat mask)
 Sets all or some of the array elements to the specified value.
 
Mat setTo (Mat value, Mat mask)
 Sets all or some of the array elements to the specified value.
 
Mat setTo (Mat value)
 Sets all or some of the array elements to the specified value.
 
Size size ()
 
int size (int i)
 
long step1 (int i)
 Returns a normalized step.
 
long step1 ()
 Returns a normalized step.
 
Mat submat (int rowStart, int rowEnd, int colStart, int colEnd)
 Extracts a rectangular submatrix.
 
Mat submat (Range rowRange, Range colRange)
 Extracts a rectangular submatrix.
 
Mat submat (Range[] ranges)
 Extracts a rectangular submatrix.
 
Mat submat (Rect roi)
 Extracts a rectangular submatrix.
 
Mat t ()
 Transposes a matrix.
 
long total ()
 Returns the total number of array elements.
 
int type ()
 Returns the type of a matrix element.
 
override string ToString ()
 
string dump ()
 Returns the contents of the visualized matrix in String format.
 
int put (int row, int col, params double[] data)
 Writes a double array to the matrix at the given row and column, casting them to match the matrix's data type.
 
int put (int[] idx, params double[] data)
 Writes a double array to the matrix at the given indices, casting them to match the matrix's data type.
 
int put (int row, int col, float[] data)
 Writes a float array to the matrix at a specified row and column.
 
int put (int[] idx, float[] data)
 Writes a float array to the matrix at the specified indices.
 
int put (int row, int col, int[] data)
 Writes an int array to the matrix at the specified row and column.
 
int put (int[] idx, int[] data)
 Writes an int array to the matrix at the specified indices.
 
int put (int row, int col, short[] data)
 Writes a short array to the matrix at the specified row and column.
 
int put (int[] idx, short[] data)
 Writes a short array to the matrix at the specified indices.
 
int put (int row, int col, byte[] data)
 Writes a byte array to the matrix at the specified row and column.
 
int put (int[] idx, byte[] data)
 Writes a byte array to the matrix at the specified indices.
 
int put (int row, int col, byte[] data, int offset, int length)
 Writes a specified number of byte values to the matrix at the given row and column, starting from the specified offset within the data array.
 
int put (int[] idx, byte[] data, int offset, int length)
 Writes a specified number of byte values to the matrix at the given indices, starting from the specified offset within the data array.
 
int get (int row, int col, byte[] data)
 Reads a byte array from the matrix at the specified row and column.
 
int get (int[] idx, byte[] data)
 Reads a byte array from the matrix at the specified indices.
 
int get (int row, int col, short[] data)
 Reads a short array from the matrix at the specified row and column.
 
int get (int[] idx, short[] data)
 Reads a short array from the matrix at the specified indices.
 
int get (int row, int col, int[] data)
 Reads an int array from the matrix at the specified row and column.
 
int get (int[] idx, int[] data)
 Reads an int array from the matrix at the specified indices.
 
int get (int row, int col, float[] data)
 Reads a float array from the matrix at the specified row and column.
 
int get (int[] idx, float[] data)
 Reads a float array from the matrix at the specified indices.
 
int get (int row, int col, double[] data)
 Reads a double array from the matrix at the specified row and column.
 
int get (int[] idx, double[] data)
 Reads a double array from the matrix at the specified indices.
 
double[] get (int row, int col)
 Reads the element values from the matrix at the specified row and column, returning them as an array of double values.
 
double[] get (int[] idx)
 Reads the element values from the matrix at the specified indices, returning them as an array of double values.
 
int height ()
 Returns the number of rows in the matrix.
 
int width ()
 Returns the number of columns in the matrix.
 
IntPtr getNativeObjAddr ()
 
int put (int row, int col, byte[] data, int length)
 Writes a byte array to the matrix at a specified row and column.
 
int put (int[] idx, byte[] data, int length)
 Writes a specified number of byte values to the matrix at the given indices.
 
int put (int row, int col, sbyte[] data)
 Writes a sbyte array to the matrix at the specified row and column.
 
int put (int row, int col, sbyte[] data, int length)
 Writes a specified number of sbyte values to the matrix at the given row and column.
 
int put (int[] idx, sbyte[] data)
 Writes a sbyte array to the matrix at the specified multi-dimensional indices.
 
int put (int[] idx, sbyte[] data, int length)
 Writes a specified number of sbyte values to the matrix at the given indices.
 
int put (int row, int col, sbyte[] data, int offset, int length)
 Writes a specified number of sbyte values to the matrix at the given row and column, starting from the specified offset within the data array.
 
int put (int[] idx, sbyte[] data, int offset, int length)
 Writes a specified number of sbyte values to the matrix at the given indices, starting from the specified offset within the data array.
 
int put (int row, int col, ushort[] data)
 Writes an ushort array to the matrix at the specified row and column.
 
int put (int row, int col, ushort[] data, int length)
 Writes a specified number of ushort values to the matrix at the given row and column.
 
int put (int row, int col, ushort[] data, int offset, int length)
 Writes a specified number of ushort values to the matrix at the given row and column, starting from the specified offset within the data array.
 
int put (int[] idx, ushort[] data)
 Writes an ushort array to the matrix at the specified indices.
 
int put (int[] idx, ushort[] data, int length)
 Writes a specified number of ushort values to the matrix at the given indices.
 
int put (int[] idx, ushort[] data, int offset, int length)
 Writes a specified number of ushort values to the matrix at the given indices, starting from the specified offset within the data array.
 
int put (int row, int col, short[] data, int length)
 Writes a specified number of short values to the matrix at the given row and column.
 
int put (int row, int col, short[] data, int offset, int length)
 Writes a specified number of short values to the matrix at the given row and column, starting from the specified offset within the data array.
 
int put (int[] idx, short[] data, int length)
 Writes a specified number of short values to the matrix at the given indices.
 
int put (int[] idx, short[] data, int offset, int length)
 Writes a specified number of short values to the matrix at the given indices, starting from the specified offset within the data array.
 
int put (int row, int col, int[] data, int length)
 Writes a specified number of int values to the matrix at the given row and column.
 
int put (int row, int col, int[] data, int offset, int length)
 Writes a specified number of int values to the matrix at the given row and column, starting from the specified offset within the data array.
 
int put (int[] idx, int[] data, int length)
 Writes a specified number of int values to the matrix at the given indices.
 
int put (int[] idx, int[] data, int offset, int length)
 Writes a specified number of int values to the matrix at the given indices, starting from the specified offset within the data array.
 
int put (int row, int col, float[] data, int length)
 Writes a specified number of float values to the matrix at the given row and column.
 
int put (int row, int col, float[] data, int offset, int length)
 Writes a specified number of float values to the matrix at the given row and column, starting from the specified offset within the data array.
 
int put (int[] idx, float[] data, int length)
 Writes a specified number of float values to the matrix at the given indices.
 
int put (int[] idx, float[] data, int offset, int length)
 Writes a specified number of float values to the matrix at the given indices, starting from the specified offset within the data array.
 
int put (int row, int col, double[] data, int length)
 Writes a specified number of double values to the matrix at the given row and column, casting them to match the matrix's data type.
 
int put (int row, int col, double[] data, int offset, int length)
 Writes a specified number of double values to the matrix at the given row and column, starting from the specified offset within the data array, casting them to match the matrix's data type.
 
int put (int[] idx, double[] data, int length)
 Writes a specified number of double values to the matrix at the given indices, casting them to match the matrix's data type.
 
int put (int[] idx, double[] data, int offset, int length)
 Writes a specified number of double values to the matrix at the given indices, starting from the specified offset within the data array, casting them to match the matrix's data type.
 
int get (int row, int col, byte[] data, int length)
 Reads a specified number of byte values from the matrix at the given row and column.
 
int get (int row, int col, byte[] data, int offset, int length)
 Reads a specified number of byte values from the matrix at the given row and column, storing them in the data array starting at the specified offset.
 
int get (int[] idx, byte[] data, int length)
 Reads a specified number of byte values from the matrix at the given indices.
 
int get (int[] idx, byte[] data, int offset, int length)
 Reads a specified number of byte values from the matrix at the given indices, storing them in the data array starting at the specified offset.
 
int get (int row, int col, sbyte[] data)
 Reads a sbyte array from the matrix at the specified row and column.
 
int get (int row, int col, sbyte[] data, int length)
 Reads a specified number of sbyte values from the matrix at the given row and column.
 
int get (int row, int col, sbyte[] data, int offset, int length)
 Reads a specified number of sbyte values from the matrix at the given row and column, storing them in the data array starting at the specified offset.
 
int get (int[] idx, sbyte[] data)
 Reads a sbyte array from the matrix at the specified indices.
 
int get (int[] idx, sbyte[] data, int length)
 Reads a specified number of sbyte values from the matrix at the given indices.
 
int get (int[] idx, sbyte[] data, int offset, int length)
 Reads a specified number of sbyte values from the matrix at the given indices, storing them in the data array starting at the specified offset.
 
int get (int row, int col, ushort[] data)
 Reads an ushort array from the matrix at the specified row and column.
 
int get (int row, int col, ushort[] data, int length)
 Reads a specified number of ushort values from the matrix at the given row and column.
 
int get (int row, int col, ushort[] data, int offset, int length)
 Reads a specified number of ushort values from the matrix at the given row and column, storing them in the data array starting at the specified offset.
 
int get (int[] idx, ushort[] data)
 Reads an ushort array from the matrix at the specified indices.
 
int get (int[] idx, ushort[] data, int length)
 Reads a specified number of ushort values from the matrix at the given indices.
 
int get (int[] idx, ushort[] data, int offset, int length)
 Reads a specified number of ushort values from the matrix at the given indices, storing them in the data array starting at the specified offset.
 
int get (int row, int col, short[] data, int length)
 Reads a specified number of short values from the matrix at the given row and column.
 
int get (int row, int col, short[] data, int offset, int length)
 Reads a specified number of short values from the matrix at the given row and column, storing them in the data array starting at the specified offset.
 
int get (int[] idx, short[] data, int length)
 Reads a specified number of short values from the matrix at the given indices.
 
int get (int[] idx, short[] data, int offset, int length)
 Reads a specified number of short values from the matrix at the given indices, storing them in the data array starting at the specified offset.
 
int get (int row, int col, int[] data, int length)
 Reads a specified number of int values from the matrix at the given row and column.
 
int get (int row, int col, int[] data, int offset, int length)
 Reads a specified number of int values from the matrix at the given row and column, storing them in the data array starting at the specified offset.
 
int get (int[] idx, int[] data, int length)
 Reads a specified number of int values from the matrix at the given indices.
 
int get (int[] idx, int[] data, int offset, int length)
 Reads a specified number of int values from the matrix at the given indices, storing them in the data array starting at the specified offset.
 
int get (int row, int col, float[] data, int length)
 Reads a specified number of float values from the matrix at the given row and column.
 
int get (int row, int col, float[] data, int offset, int length)
 Reads a specified number of float values from the matrix at the given row and column, storing them in the data array starting at the specified offset.
 
int get (int[] idx, float[] data, int length)
 Reads a specified number of float values from the matrix at the given indices.
 
int get (int[] idx, float[] data, int offset, int length)
 Reads a specified number of float values from the matrix at the given indices, storing them in the data array starting at the specified offset.
 
int get (int row, int col, double[] data, int length)
 Reads a specified number of double values from the matrix at the given row and column.
 
int get (int row, int col, double[] data, int offset, int length)
 Reads a specified number of double values from the matrix at the given row and column, storing them in the data array starting at the specified offset.
 
int get (int[] idx, double[] data, int length)
 Reads a specified number of double values from the matrix at the given indices.
 
int get (int[] idx, double[] data, int offset, int length)
 Reads a specified number of double values from the matrix at the given indices, storing them in the data array starting at the specified offset.
 
int put (int row, int col, Span< byte > data)
 Writes a span of byte data to the matrix at the specified row and column.
 
int put (int row, int col, Span< byte > data, int length)
 Writes a span of byte data to the matrix at the specified row and column.
 
int put (int row, int col, Span< byte > data, int offset, int length)
 Writes a span of byte data to the matrix at the specified row and column, starting from the specified offset within the data span.
 
int put (int[] idx, Span< byte > data)
 Writes a span of byte data to the matrix at the specified indices.
 
int put (int[] idx, Span< byte > data, int length)
 Writes a span of byte data to the matrix at the specified indices with a specified length.
 
int put (int[] idx, Span< byte > data, int offset, int length)
 Writes a span of byte data to the matrix at the specified indices, starting from the specified offset within the data span.
 
int put (int row, int col, Span< sbyte > data)
 Writes a span of sbyte data to the matrix at the specified row and column.
 
int put (int row, int col, Span< sbyte > data, int length)
 Writes a span of sbyte data to the matrix at the specified row and column.
 
int put (int row, int col, Span< sbyte > data, int offset, int length)
 Writes a span of sbyte data to the matrix at the specified row and column, starting from the specified offset within the data span.
 
int put (int[] idx, Span< sbyte > data)
 Writes a span of sbyte data to the matrix at the specified indices.
 
int put (int[] idx, Span< sbyte > data, int length)
 Writes a span of sbyte data to the matrix at the specified indices with a specified length.
 
int put (int[] idx, Span< sbyte > data, int offset, int length)
 Writes a span of sbyte data to the matrix at the specified indices, starting from the specified offset within the data span.
 
int put (int row, int col, Span< ushort > data)
 Writes a span of ushort data to the matrix at the specified row and column.
 
int put (int row, int col, Span< ushort > data, int length)
 Writes a span of ushort data to the matrix at the specified row and column.
 
int put (int row, int col, Span< ushort > data, int offset, int length)
 Writes a span of ushort data to the matrix at the specified row and column, starting from the specified offset within the data span.
 
int put (int[] idx, Span< ushort > data)
 Writes a span of ushort data to the matrix at the specified indices.
 
int put (int[] idx, Span< ushort > data, int length)
 Writes a span of ushort data to the matrix at the specified indices with a specified length.
 
int put (int[] idx, Span< ushort > data, int offset, int length)
 Writes a span of ushort data to the matrix at the specified indices, starting from the specified offset within the data span.
 
int put (int row, int col, Span< short > data)
 Writes a span of short data to the matrix at the specified row and column.
 
int put (int row, int col, Span< short > data, int length)
 Writes a span of short data to the matrix at the specified row and column.
 
int put (int row, int col, Span< short > data, int offset, int length)
 Writes a span of short data to the matrix at the specified row and column, starting from the specified offset within the data span.
 
int put (int[] idx, Span< short > data)
 Writes a span of short data to the matrix at the specified indices.
 
int put (int[] idx, Span< short > data, int length)
 Writes a span of short data to the matrix at the specified indices with a specified length.
 
int put (int[] idx, Span< short > data, int offset, int length)
 Writes a span of short data to the matrix at the specified indices, starting from the specified offset within the data span.
 
int put (int row, int col, Span< int > data)
 Writes a span of int data to the matrix at the specified row and column.
 
int put (int row, int col, Span< int > data, int length)
 Writes a span of int data to the matrix at the specified row and column.
 
int put (int row, int col, Span< int > data, int offset, int length)
 Writes a span of int data to the matrix at the specified row and column, starting from the specified offset within the data span.
 
int put (int[] idx, Span< int > data)
 Writes a span of int data to the matrix at the specified indices.
 
int put (int[] idx, Span< int > data, int length)
 Writes a span of int data to the matrix at the specified indices with a specified length.
 
int put (int[] idx, Span< int > data, int offset, int length)
 Writes a span of int data to the matrix at the specified indices, starting from the specified offset within the data span.
 
int put (int row, int col, Span< float > data)
 Writes a span of float data to the matrix at the specified row and column.
 
int put (int row, int col, Span< float > data, int length)
 Writes a span of float data to the matrix at the specified row and column.
 
int put (int row, int col, Span< float > data, int offset, int length)
 Writes a span of float data to the matrix at the specified row and column, starting from the specified offset within the data span.
 
int put (int[] idx, Span< float > data)
 Writes a span of float data to the matrix at the specified indices.
 
int put (int[] idx, Span< float > data, int length)
 Writes a span of float data to the matrix at the specified indices with a specified length.
 
int put (int[] idx, Span< float > data, int offset, int length)
 Writes a span of float data to the matrix at the specified indices, starting from the specified offset within the data span.
 
int put (int row, int col, Span< double > data)
 Writes a span of double data to the matrix at the specified row and column, casting them to match the matrix's data type.
 
int put (int row, int col, Span< double > data, int length)
 Writes a span of double data to the matrix at the specified row and column, casting them to match the matrix's data type.
 
int put (int row, int col, Span< double > data, int offset, int length)
 Writes a span of double data to the matrix at the specified row and column, starting from the specified offset within the data array, casting them to match the matrix's data type.
 
int put (int[] idx, Span< double > data)
 Writes a span of double data to the matrix at the specified indices, casting them to match the matrix's data type.
 
int put (int[] idx, Span< double > data, int length)
 Writes a span of double data to the matrix at the specified indices with a specified length, casting them to match the matrix's data type.
 
int put (int[] idx, Span< double > data, int offset, int length)
 Writes a span of double data to the matrix at the specified indices, starting from the specified offset within the data span, casting them to match the matrix's data type.
 
int get (int row, int col, Span< byte > data)
 Reads a span of byte data from the matrix at the specified row and column.
 
int get (int row, int col, Span< byte > data, int length)
 Reads a span of byte data from the matrix at the specified row and column.
 
int get (int row, int col, Span< byte > data, int offset, int length)
 Reads a span of byte data from the matrix at the specified row and column, storing them in the data span starting at the specified offset.
 
int get (int[] idx, Span< byte > data)
 Reads a span of byte data from the matrix at the specified indices.
 
int get (int[] idx, Span< byte > data, int length)
 Reads a span of byte data from the matrix at the specified indices.
 
int get (int[] idx, Span< byte > data, int offset, int length)
 Reads a span of byte data from the matrix at the specified indices, storing them in the data span starting at the specified offset.
 
int get (int row, int col, Span< sbyte > data)
 Reads a span of sbyte data from the matrix at the specified row and column.
 
int get (int row, int col, Span< sbyte > data, int length)
 Reads a span of sbyte data from the matrix at the specified row and column.
 
int get (int row, int col, Span< sbyte > data, int offset, int length)
 Reads a span of sbyte data from the matrix at the specified row and column, storing them in the data span starting at the specified offset.
 
int get (int[] idx, Span< sbyte > data)
 Reads a span of sbyte data from the matrix at the specified indices.
 
int get (int[] idx, Span< sbyte > data, int length)
 Reads a span of sbyte data from the matrix at the specified indices.
 
int get (int[] idx, Span< sbyte > data, int offset, int length)
 Reads a span of sbyte data from the matrix at the specified indices, storing them in the data span starting at the specified offset.
 
int get (int row, int col, Span< ushort > data)
 Reads a span of ushort data from the matrix at the specified row and column.
 
int get (int row, int col, Span< ushort > data, int length)
 Reads a span of ushort data from the matrix at the specified row and column.
 
int get (int row, int col, Span< ushort > data, int offset, int length)
 Reads a span of ushort data from the matrix at the specified row and column, storing them in the data span starting at the specified offset.
 
int get (int[] idx, Span< ushort > data)
 Reads a ushort of byte data from the matrix at the specified indices.
 
int get (int[] idx, Span< ushort > data, int length)
 Reads a span of ushort data from the matrix at the specified indices.
 
int get (int[] idx, Span< ushort > data, int offset, int length)
 Reads a span of ushort data from the matrix at the specified indices, storing them in the data span starting at the specified offset.
 
int get (int row, int col, Span< short > data)
 Reads a span of short data from the matrix at the specified row and column.
 
int get (int row, int col, Span< short > data, int length)
 Reads a span of short data from the matrix at the specified row and column.
 
int get (int row, int col, Span< short > data, int offset, int length)
 Reads a span of short data from the matrix at the specified row and column, storing them in the data span starting at the specified offset.
 
int get (int[] idx, Span< short > data)
 Reads a span of short data from the matrix at the specified indices.
 
int get (int[] idx, Span< short > data, int length)
 Reads a span of short data from the matrix at the specified indices.
 
int get (int[] idx, Span< short > data, int offset, int length)
 Reads a span of short data from the matrix at the specified indices, storing them in the data span starting at the specified offset.
 
int get (int row, int col, Span< int > data)
 Reads a span of int data from the matrix at the specified row and column.
 
int get (int row, int col, Span< int > data, int length)
 Reads a span of int data from the matrix at the specified row and column.
 
int get (int row, int col, Span< int > data, int offset, int length)
 Reads a span of int data from the matrix at the specified row and column, storing them in the data span starting at the specified offset.
 
int get (int[] idx, Span< int > data)
 Reads a span of int data from the matrix at the specified indices.
 
int get (int[] idx, Span< int > data, int length)
 Reads a span of int data from the matrix at the specified indices.
 
int get (int[] idx, Span< int > data, int offset, int length)
 Reads a span of int data from the matrix at the specified indices, storing them in the data span starting at the specified offset.
 
int get (int row, int col, Span< float > data)
 Reads a span of float data from the matrix at the specified row and column.
 
int get (int row, int col, Span< float > data, int length)
 Reads a span of float data from the matrix at the specified row and column.
 
int get (int row, int col, Span< float > data, int offset, int length)
 Reads a span of float data from the matrix at the specified row and column, storing them in the data span starting at the specified offset.
 
int get (int[] idx, Span< float > data)
 Reads a span of float data from the matrix at the specified indices.
 
int get (int[] idx, Span< float > data, int length)
 Reads a span of float data from the matrix at the specified indices.
 
int get (int[] idx, Span< float > data, int offset, int length)
 Reads a span of float data from the matrix at the specified indices, storing them in the data span starting at the specified offset.
 
int get (int row, int col, Span< double > data)
 Reads a span of double data from the matrix at the specified row and column.
 
int get (int row, int col, Span< double > data, int length)
 Reads a span of double data from the matrix at the specified row and column.
 
int get (int row, int col, Span< double > data, int offset, int length)
 Reads a span of double data from the matrix at the specified row and column, storing them in the data span starting at the specified offset.
 
int get (int[] idx, Span< double > data)
 Reads a span of double data from the matrix at the specified indices.
 
int get (int[] idx, Span< double > data, int length)
 Reads a span of double data from the matrix at the specified indices.
 
int get (int[] idx, Span< double > data, int offset, int length)
 Reads a span of double data from the matrix at the specified indices, storing them in the data span starting at the specified offset.
 
int put< T > (int row, int col, T[] data)
 Writes an array of type T to the matrix at the specified row and column.
 
int put< T > (int row, int col, T[] data, int length)
 Writes an array of type T to the matrix at the specified row and column.
 
int put< T > (int row, int col, T[] data, int offset, int length)
 Writes an array of type T to the matrix at the specified row and column, starting from the specified offset within the data array.
 
int put< T > (int[] idx, T[] data)
 Writes an array of type T to the matrix at the specified indices.
 
int put< T > (int[] idx, T[] data, int length)
 Writes an array of type T to the matrix at the specified indices.
 
int put< T > (int[] idx, T[] data, int offset, int length)
 Writes an array of type T to the matrix at the specified indices, starting from the specified offset within the data array.
 
int get< T > (int row, int col, T[] data)
 Reads an array of type T from the matrix at the specified row and column.
 
int get< T > (int row, int col, T[] data, int length)
 Reads an array of type T from the matrix at the specified row and column.
 
int get< T > (int row, int col, T[] data, int offset, int length)
 Reads an array of type T from the matrix at the specified row and column, storing them in the data array starting at the specified offset.
 
int get< T > (int[] idx, T[] data)
 Reads an array of type T from the matrix at the specified indices.
 
int get< T > (int[] idx, T[] data, int length)
 Reads an array of type T from the matrix at the specified indices.
 
int get< T > (int[] idx, T[] data, int offset, int length)
 Reads an array of type T from the matrix at the specified indices, storing them in the data array starting at the specified offset.
 
T[] get< T > (int row, int col)
 Reads the element values from the matrix at the specified row and column, returning them as an array of type T .
 
T[] get< T > (int[] idx)
 Reads the element values from the matrix at the specified indices, returning them as an array of type T .
 
int put< T > (int row, int col, Span< T > data)
 Writes a span of type T to the matrix at the specified row and column.
 
int put< T > (int row, int col, Span< T > data, int length)
 Writes a span of type T to the matrix at the specified row and column.
 
int put< T > (int row, int col, Span< T > data, int offset, int length)
 Writes a span of type T to the matrix at the specified row and column, starting from the specified offset within the data span.
 
int put< T > (int[] idx, Span< T > data)
 Writes a span of type T to the matrix at the specified indices.
 
int put< T > (int[] idx, Span< T > data, int length)
 Writes a span of type T to the matrix at the specified indices.
 
int put< T > (int[] idx, Span< T > data, int offset, int length)
 Writes a span of type T to the matrix at the specified indices, starting from the specified offset within the data span.
 
int get< T > (int row, int col, Span< T > data)
 Reads a span of type T from the matrix at the specified row and column.
 
int get< T > (int row, int col, Span< T > data, int length)
 Reads a span of type T from the matrix at the specified row and column.
 
int get< T > (int row, int col, Span< T > data, int offset, int length)
 Reads a span of type T from the matrix at the specified row and column, storing them in the data span starting at the specified offset.
 
int get< T > (int[] idx, Span< T > data)
 Reads a span of type T from the matrix at the specified indices.
 
int get< T > (int[] idx, Span< T > data, int length)
 Reads a span of type T from the matrix at the specified indices.
 
int get< T > (int[] idx, Span< T > data, int offset, int length)
 Reads a span of type T from the matrix at the specified indices, storing them in the data span starting at the specified offset.
 
IntPtr ptr (int i0)
 Returns a pointer to the specified row of the Mat object.
 
IntPtr ptr (int i0, int i1)
 Returns a pointer to the specified row and column of the Mat object.
 
IntPtr ptr (int i0, int i1, int i2)
 Returns a pointer to the specified element of the Mat object based on the given row, column, and third dimension indices.
 
IntPtr ptr (params int[] idx)
 Returns a pointer to the specified element of the Mat object based on the provided indices for each dimension.
 
Span< T > at< T > (int i0)
 Creates and returns a Span<T> representing the first element in the specified row of the Mat object.
 
Span< T > at< T > (int i0, int i1)
 Creates and returns a Span<T> representing the first element in the specified row and column of the Mat object.
 
Span< T > at< T > (int i0, int i1, int i2)
 Creates and returns a Span<T> representing the first element in the specified row, column, and third dimension of the Mat object.
 
Span< T > at< T > (params int[] idx)
 Creates and returns a Span<T> representing the first element in the specified coordinates of the Mat object.
 
Span< T > AsSpan< T > ()
 Creates and returns a Span%3CT%3E representing the entire data of the Mat object.
 
Span< T > AsSpan< T > (int i0)
 Creates and returns a Span<T> representing the data in the specified row or dimension of the Mat object.
 
Span< T > AsSpan< T > (int i0, int i1)
 Creates and returns a Span<T> representing the data at the specified row and column, or dimensions, of the Mat object.
 
Span< T > AsSpan< T > (int i0, int i1, int i2)
 Creates and returns a Span<T> representing the data at the specified element in the Mat object, starting from the given three-dimensional indices.
 
Span< T > AsSpan< T > (params int[] idx)
 Creates and returns a Span<T> representing the data at the specified element in the Mat object based on a variable number of indices.
 
Span< T > AsSpanRowRange< T > (int startrow, int endrow)
 Creates and returns a Span<T> representing the data in the specified range of rows in the Mat object.
 
Span< T > AsSpanRowRange< T > (Range r)
 Creates and returns a Span<T> representing a range of rows from the Mat object, defined by the specified Range.
 
 Mat (in Vec2d size, int type)
 
 Mat (int rows, int cols, int type, in Vec4d s)
 
 Mat (in Vec2d size, int type, in Vec4d s)
 
 Mat (int[] sizes, int type, in Vec4d s)
 
 Mat (Mat m, in Vec2i rowRange, in Vec2i colRange)
 
 Mat (Mat m, in Vec2i rowRange)
 
 Mat (Mat m, in Vec2i[] ranges)
 
 Mat (Mat m, in Vec4i roi)
 
 Mat (in Vec2d size, int type, IntPtr data, long step=AUTO_STEP)
 
Mat colRange (in Vec2i r)
 Creates a matrix header for the specified column span.
 
void create (in Vec2d size, int type)
 Allocates new array data if needed.
 
void locateROI (out Vec2d wholeSize, out Vec2d ofs)
 Locates the matrix header within a parent matrix.
 
Mat rowRange (in Vec2i r)
 Creates a matrix header for the specified row span.
 
Mat setTo (in Vec4d s)
 Sets all or some of the array elements to the specified value.
 
Mat setTo (in Vec4d value, Mat mask)
 Sets all or some of the array elements to the specified value.
 
Vec2d sizeAsVec2d ()
 
Mat submat (in Vec2i rowRange, in Vec2i colRange)
 Extracts a rectangular submatrix.
 
Mat submat (in Vec2i[] ranges)
 Extracts a rectangular submatrix.
 
Mat submat (in Vec4i roi)
 Extracts a rectangular submatrix.
 
 Mat (in(double width, double height) size, int type)
 
 Mat (int rows, int cols, int type, in(double v0, double v1, double v2, double v3) s)
 
 Mat (in(double width, double height) size, int type, in(double v0, double v1, double v2, double v3) s)
 
 Mat (int[] sizes, int type, in(double v0, double v1, double v2, double v3) s)
 
 Mat (Mat m, in(int start, int end) rowRange, in(int start, int end) colRange)
 
 Mat (Mat m, in(int start, int end) rowRange)
 
 Mat (Mat m, in(int start, int end)[] ranges)
 
 Mat (Mat m, in(int x, int y, int width, int height) roi)
 
 Mat (in(double width, double height) size, int type, IntPtr data, long step=AUTO_STEP)
 
Mat colRange (in(int start, int end) r)
 Creates a matrix header for the specified column span.
 
void create (in(double width, double height) size, int type)
 Allocates new array data if needed.
 
void locateROI (out(double width, double height) wholeSize, out(double x, double y) ofs)
 Locates the matrix header within a parent matrix.
 
Mat rowRange (in(int start, int end) r)
 Creates a matrix header for the specified row span.
 
Mat setTo (in(double v0, double v1, double v2, double v3) s)
 Sets all or some of the array elements to the specified value.
 
Mat setTo (in(double v0, double v1, double v2, double v3) value, Mat mask)
 Sets all or some of the array elements to the specified value.
 
double double height sizeAsValueTuple ()
 
Mat submat (in(int start, int end) rowRange, in(int start, int end) colRange)
 Extracts a rectangular submatrix.
 
Mat submat (in(int start, int end)[] ranges)
 Extracts a rectangular submatrix.
 
Mat submat (in(int x, int y, int width, int height) roi)
 Extracts a rectangular submatrix.
 
- Public Member Functions inherited from OpenCVForUnity.DisposableObject
void Dispose ()
 
void ThrowIfDisposed ()
 

Static Public Member Functions

static MatOfByte fromNativeAddr (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.CoreModule.Mat
static Mat diag (Mat d)
 creates a diagonal matrix
 
static Mat eye (int rows, int cols, int type)
 Returns an identity matrix of the specified size and type.
 
static Mat eye (Size size, int type)
 Returns an identity matrix of the specified size and type.
 
static Mat ones (int rows, int cols, int type)
 Returns an array of all 1's of the specified size and type.
 
static Mat ones (Size size, int type)
 Returns an array of all 1's of the specified size and type.
 
static Mat ones (int[] sizes, int type)
 Returns an array of all 1's of the specified size and type.
 
static Mat zeros (int rows, int cols, int type)
 Returns a zero array of the specified size and type.
 
static Mat zeros (Size size, int type)
 Returns a zero array of the specified size and type.
 
static Mat zeros (int[] sizes, int type)
 Returns a zero array of the specified size and type.
 
static Mat operator- (Mat a)
 Negates all elements of the matrix.
 
static Mat operator~ (Mat a)
 Performs a bitwise NOT operation on the matrix.
 
static Mat operator+ (Mat a, Mat b)
 Adds two matrices element-wise.
 
static Mat operator+ (Mat a, Scalar s)
 Adds a scalar value to each element of the matrix.
 
static Mat operator+ (Scalar s, Mat a)
 Adds a scalar value to each element of the matrix.
 
static Mat operator- (Mat a, Mat b)
 Subtracts one matrix from another.
 
static Mat operator- (Mat a, Scalar s)
 Subtracts a scalar value from each element of the matrix.
 
static Mat operator- (Scalar s, Mat a)
 Subtracts a scalar value from each element of the matrix.
 
static Mat operator* (Mat a, Mat b)
 Multiplies two matrices using the General Matrix Multiply (GEMM) operation.
 
static Mat operator* (Mat a, double s)
 Multiplies a matrix by a scalar value.
 
static Mat operator* (double s, Mat a)
 Multiplies a matrix by a scalar value.
 
static Mat operator/ (Mat a, Mat b)
 Divides one matrix by another.
 
static Mat operator/ (double s, Mat a)
 Divides a scalar value by a matrix.
 
static Mat operator/ (Mat a, double s)
 Divides a matrix by a scalar value.
 
static Mat operator& (Mat a, Mat b)
 Performs a bitwise AND operation between two matrices.
 
static Mat operator& (Mat a, Scalar s)
 Performs a bitwise AND operation between a matrix and a scalar.
 
static Mat operator& (Scalar s, Mat a)
 Performs a bitwise AND operation between a scalar and a matrix.
 
static Mat operator| (Mat a, Mat b)
 Performs a bitwise OR operation between two matrices.
 
static Mat operator| (Mat a, Scalar s)
 Performs a bitwise OR operation between a matrix and a scalar value.
 
static Mat operator| (Scalar s, Mat a)
 Performs a bitwise OR operation between a scalar value and a matrix.
 
static Mat operator^ (Mat a, Mat b)
 Performs a bitwise XOR operation between two matrices.
 
static Mat operator^ (Mat a, Scalar s)
 Performs a bitwise XOR operation between a matrix and a scalar value.
 
static Mat operator^ (Scalar s, Mat a)
 Performs a bitwise XOR operation between a scalar value and a matrix.
 
static Mat eye (in Vec2d size, int type)
 Returns an identity matrix of the specified size and type.
 
static Mat ones (in Vec2d size, int type)
 Returns an array of all 1's of the specified size and type.
 
static Mat zeros (in Vec2d size, int type)
 Returns a zero array of the specified size and type.
 
static Mat eye (in(double width, double height) size, int type)
 Returns an identity matrix of the specified size and type.
 
static Mat ones (in(double width, double height) size, int type)
 Returns an array of all 1's of the specified size and type.
 
static Mat zeros (in(double width, double height) size, int type)
 Returns a zero array of the specified size and type.
 
- Static Public Member Functions inherited from OpenCVForUnity.DisposableObject
static IntPtr ThrowIfNullIntPtr (IntPtr ptr)
 

Protected Member Functions

 MatOfByte (IntPtr addr)
 
- Protected Member Functions inherited from OpenCVForUnity.CoreModule.Mat
override void Dispose (bool disposing)
 Deallocates the matrix data and releases resources.
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject
 DisposableOpenCVObject ()
 
 DisposableOpenCVObject (IntPtr ptr)
 
 DisposableOpenCVObject (bool isEnabledDispose)
 
 DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableObject
 DisposableObject ()
 
 DisposableObject (bool isEnabledDispose)
 

Additional Inherited Members

- Public Attributes inherited from OpenCVForUnity.CoreModule.Mat
double width
 
- Static Public Attributes inherited from OpenCVForUnity.CoreModule.Mat
const int AUTO_STEP = 0
 
- Package Attributes inherited from OpenCVForUnity.DisposableOpenCVObject
- Properties inherited from OpenCVForUnity.DisposableObject
bool IsDisposed [get, protected set]
 
bool IsEnabledDispose [get, set]
 

Constructor & Destructor Documentation

◆ MatOfByte() [1/5]

OpenCVForUnity.CoreModule.MatOfByte.MatOfByte ( )

◆ MatOfByte() [2/5]

OpenCVForUnity.CoreModule.MatOfByte.MatOfByte ( IntPtr addr)
protected

◆ MatOfByte() [3/5]

OpenCVForUnity.CoreModule.MatOfByte.MatOfByte ( Mat m)

◆ MatOfByte() [4/5]

OpenCVForUnity.CoreModule.MatOfByte.MatOfByte ( params byte[] a)

◆ MatOfByte() [5/5]

OpenCVForUnity.CoreModule.MatOfByte.MatOfByte ( int offset,
int length,
params byte[] a )

Member Function Documentation

◆ alloc()

void OpenCVForUnity.CoreModule.MatOfByte.alloc ( int elemNumber)

◆ fromArray() [1/2]

void OpenCVForUnity.CoreModule.MatOfByte.fromArray ( int offset,
int length,
params byte[] a )

◆ fromArray() [2/2]

void OpenCVForUnity.CoreModule.MatOfByte.fromArray ( params byte[] a)

◆ fromList()

void OpenCVForUnity.CoreModule.MatOfByte.fromList ( List< byte > lb)

◆ fromNativeAddr()

static MatOfByte OpenCVForUnity.CoreModule.MatOfByte.fromNativeAddr ( IntPtr addr)
static

◆ toArray()

byte[] OpenCVForUnity.CoreModule.MatOfByte.toArray ( )

◆ toList()

List< byte > OpenCVForUnity.CoreModule.MatOfByte.toList ( )

The documentation for this class was generated from the following file: