Class cv::Mat_#

Template matrix class derived from Mat. View details

Collaboration diagram for cv::Mat_:

Public Types#

Public Types inherited from cv::Mat

Return

Name

Description

``

``

Public Member Functions#

Public Member Functions inherited from cv::Mat

Return

Name

Description

Mat()

Mat(const cuda::GpuMat & m)

download data from GpuMat

Mat(const Mat & m)

Mat(
    const Mat & m,
    const Range & rowRange,
    const Range & colRange = Range::all() )

Mat(
    const Mat & m,
    const Range * ranges )

Mat(
    const Mat & m,
    const Rect & roi )

Mat(
    const Mat & m,
    const std::vector< Range > & ranges )

Mat(const MatCommaInitializer_< _Tp > & commaInitializer)

Mat(
    const MatShape & shape,
    int type )

Mat(
    const MatShape & shape,
    int type,
    const Scalar & s )

Mat(
    const MatShape & shape,
    int type,
    void * data,
    const size_t * steps = 0 )

Mat(
    const Matx< _Tp, m, n > & mtx,
    bool copyData = true )

Mat(
    const Point3_< _Tp > & pt,
    bool copyData = true )

Mat(
    const Point_< _Tp > & pt,
    bool copyData = true )

Mat(
    const std::array< _Tp, _Nm > & arr,
    bool copyData = false )

Mat(const std::initializer_list< _Tp > list)

Mat(
    const std::initializer_list< int > sizes,
    const std::initializer_list< _Tp > list )

Mat(
    const std::vector< _Tp > & vec,
    bool copyData = false )

Mat(
    const std::vector< int > & sizes,
    int type )

Mat(
    const std::vector< int > & sizes,
    int type,
    const Scalar & s )

Mat(
    const std::vector< int > & sizes,
    int type,
    void * data,
    const size_t * steps = 0 )

Mat(
    const Vec< _Tp, n > & vec,
    bool copyData = true )

Mat(
    int ndims,
    const int * sizes,
    int type )

Mat(
    int ndims,
    const int * sizes,
    int type,
    const Scalar & s )

Mat(
    int ndims,
    const int * sizes,
    int type,
    void * data,
    const size_t * steps = 0 )

Mat(
    int rows,
    int cols,
    int type )

Mat(
    int rows,
    int cols,
    int type,
    const Scalar & s )

Mat(
    int rows,
    int cols,
    int type,
    void * data,
    size_t step = AUTO_STEP )

Mat(Mat && m)

Mat(
    Size size,
    int type )

Mat(
    Size size,
    int type,
    const Scalar & s )

Mat(
    Size size,
    int type,
    void * data,
    size_t step = AUTO_STEP )

Mat(
    std::initializer_list< int > shape,
    int type )

Mat(
    std::initializer_list< int > shape,
    int type,
    const Scalar & s )

Mat(
    std::initializer_list< int > shape,
    int type,
    void * data,
    const size_t * steps = 0 )

~Mat()

destructor - calls release()

void

addref()

Increments the reference counter.

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 = -1 )

Provides a functional form of convertTo.

_Tp &

at(const int * idx)

const _Tp &

at(const int * idx)

_Tp &

at(const Vec< int, n > & idx)

const _Tp &

at(const Vec< int, n > & idx)

_Tp &

at(
    int i0,
    int i1,
    int i2 )

const _Tp &

at(
    int i0,
    int i1,
    int i2 )

_Tp &

at(int i0 = 0)

Returns a reference to the specified array element.

const _Tp &

at(int i0 = 0)

_Tp &

at(
    int row,
    int col )

const _Tp &

at(
    int row,
    int col )

_Tp &

at(Point pt)

const _Tp &

at(Point pt)

MatIterator_< _Tp >

begin()

Returns the matrix iterator and sets it to the first matrix element.

MatConstIterator_< _Tp >

begin()

int

channels()

Returns the number of matrix channels.

int

checkVector(
    int elemChannels,
    int depth = -1,
    bool requireContinuous = true )

CV_NODISCARD_STD 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(const Range & r)

Mat

colRange(
    int startcol,
    int endcol )

Creates a matrix header for the specified column span.

void

convertTo(
    OutputArray m,
    int rtype,
    double alpha = 1,
    double beta = 0 )

Converts an array to another data type with optional scaling.

void

copyAt(OutputArray m)

Overwrites the existing matrix.

void

copyAt(
    OutputArray m,
    InputArray mask )

void

copySize(const Mat & m)

internal use function; properly re-allocates _size, _step arrays

void

copyTo(OutputArray m)

Copies the matrix to another one.

void

copyTo(
    OutputArray m,
    InputArray mask )

void

create(
    const MatShape & shape,
    int type )

void

create(
    const std::vector< int > & sizes,
    int type )

void

create(
    int ndims,
    const int * sizes,
    int type )

void

create(
    int rows,
    int cols,
    int type )

Allocates new array data if needed.

void

create(
    Size size,
    int type )

void

create(
    std::initializer_list< int > shape,
    int type )

void

createSameSize(
    InputArray arr,
    int type )

Creates the matrix of the same size as another array.

Mat

cross(InputArray m)

Computes a cross-product of two 3-element vectors.

void

deallocate()

internal use function, consider to use ‘release’ method instead; deallocates the matrix data

int

depth()

Returns the depth of a matrix element.

Mat

diag(int d = 0)

Extracts a diagonal from a matrix.

double

dot(InputArray m)

Computes a dot-product of two vectors.

size_t

elemSize()

Returns the matrix element size in bytes.

size_t

elemSize1()

Returns the size of each matrix element channel in bytes.

bool

empty()

Returns true if the array has no elements.

MatIterator_< _Tp >

end()

Returns the matrix iterator and sets it to the after-last matrix element.

MatConstIterator_< _Tp >

end()

void

fit(
    const MatShape & shape,
    int type )

void

fit(
    const std::vector< int > & sizes,
    int type )

void

fit(
    int ndims,
    const int * sizes,
    int type )

void

fit(
    int rows,
    int cols,
    int type )

Similar to create(rows, cols, type), but only reallocates memory if the existing buffer size is not enough.

void

fit(
    Size size,
    int type )

void

fit(
    std::initializer_list< int > shape,
    int type )

void

fitSameSize(
    InputArray arr,
    int type )

Similar to createSameSize(arr, type), but only reallocates memory if the existing buffer is not enough.

void

forEach(const Functor & operation)

Runs the given functor over all matrix elements in parallel.

void

forEach(const Functor & operation)

UMat

getUMat(
    AccessFlag accessFlags,
    UMatUsageFlags usageFlags = USAGE_DEFAULT )

retrieve UMat from Mat

MatExpr

inv(int method = DECOMP_LU)

Inverses a matrix.

bool

isContinuous()

Reports whether the matrix is continuous or not.

bool

isSubmatrix()

returns true if the matrix is a submatrix of another matrix

void

locateROI(
    Size & wholeSize,
    Point & ofs )

Locates the matrix header within a parent matrix.

MatExpr

mul(
    InputArray m,
    double scale = 1 )

Performs an element-wise multiplication or division of the two matrices.

operator Matx< _Tp, m, n >()

operator std::array< _Tp, _Nm >()

operator std::vector< _Tp >()

operator Vec< _Tp, n >()

Mat

operator()(const Range * ranges)

Mat

operator()(const Rect & roi)

Mat

operator()(const std::vector< Range > & ranges)

Mat

operator()(
    Range rowRange,
    Range colRange )

Extracts a rectangular submatrix.

Mat &

operator=(const Mat & m)

assignment operators

Mat &

operator=(const MatExpr & expr)

Mat &

operator=(const Scalar & s)

Sets all or some of the array elements to the specified value.

Mat &

operator=(Mat && m)

void

pop_back(size_t nelems = 1)

Removes elements from the bottom of the matrix.

uchar *

ptr(const int * idx)

_Tp *

ptr(const int * idx)

const uchar *

ptr(const int * idx)

const _Tp *

ptr(const int * idx)

uchar *

ptr(const Vec< int, n > & idx)

_Tp *

ptr(const Vec< int, n > & idx)

const uchar *

ptr(const Vec< int, n > & idx)

const _Tp *

ptr(const Vec< int, n > & idx)

uchar *

ptr(
    int i0,
    int i1,
    int i2 )

_Tp *

ptr(
    int i0,
    int i1,
    int i2 )

const uchar *

ptr(
    int i0,
    int i1,
    int i2 )

const _Tp *

ptr(
    int i0,
    int i1,
    int i2 )

uchar *

ptr(int i0 = 0)

Returns a pointer to the specified matrix row.

_Tp *

ptr(int i0 = 0)

const uchar *

ptr(int i0 = 0)

const _Tp *

ptr(int i0 = 0)

uchar *

ptr(
    int row,
    int col )

_Tp *

ptr(
    int row,
    int col )

const uchar *

ptr(
    int row,
    int col )

const _Tp *

ptr(
    int row,
    int col )

void

push_back(const _Tp & elem)

Adds elements to the bottom of the matrix.

void

push_back(const Mat & m)

void

push_back(const Mat_< _Tp > & elem)

void

push_back(const std::vector< _Tp > & elem)

void

push_back_(const void * elem)

internal function

std::reverse_iterator< MatIterator_< _Tp > >

rbegin()

Same as begin() but for inverse traversal.

std::reverse_iterator< MatConstIterator_< _Tp > >

rbegin()

Mat

reinterpret(int type)

Reset the type of matrix.

void

release()

Decrements the reference counter and deallocates the matrix if needed.

std::reverse_iterator< MatIterator_< _Tp > >

rend()

Same as end() but for inverse traversal.

std::reverse_iterator< MatConstIterator_< _Tp > >

rend()

void

reserve(size_t sz)

Reserves space for the certain number of rows.

void

reserveBuffer(size_t sz)

Reserves space for the certain number of bytes.

Mat

reshape(
    int cn,
    const MatShape & newshape )

Mat

reshape(
    int cn,
    const std::vector< int > & newshape )

Mat

reshape(
    int cn,
    int newndims,
    const int * newsz )

Mat

reshape(
    int cn,
    int rows = 0 )

Changes the shape and/or the number of channels of a 2D matrix without copying the data.

Mat

reshape(
    int cn,
    std::initializer_list< int > newshape )

void

resize(size_t sz)

Changes the number of matrix rows.

void

resize(
    size_t sz,
    const Scalar & s )

Mat

row(int y)

Creates a matrix header for the specified matrix row.

Mat

rowRange(const Range & r)

Mat

rowRange(
    int startrow,
    int endrow )

Creates a matrix header for the specified row span.

Mat &

setTo(
    InputArray value,
    InputArray mask = noArray() )

Sets all or some of the array elements to the specified value.

Mat &

setZero()

Sets all the array elements to 0.

MatShape

shape()

Returns the shape.

size_t

step1(int i = 0)

Returns a normalized step.

MatExpr

t()

Transposes a matrix.

size_t

total()

Returns the total number of array elements.

size_t

total(
    int startDim,
    int endDim = INT_MAX )

Returns the total number of array elements.

int

type()

Returns the type of a matrix element.

void

updateContinuityFlag()

internal use method: updates the continuity flag

Static Public Member Functions#

Static Public Member Functions inherited from cv::Mat

Return

Name

Description

static CV_NODISCARD_STD Mat

diag(const Mat & d)

creates a diagonal matrix

static CV_NODISCARD_STD MatExpr

eye(
    int rows,
    int cols,
    int type )

Returns an identity matrix of the specified size and type.

static CV_NODISCARD_STD MatExpr

eye(
    Size size,
    int type )

static MatAllocator *

getDefaultAllocator()

static MatAllocator *

getStdAllocator()

and the standard allocator

static CV_NODISCARD_STD MatExpr

ones(
    const MatShape & shape,
    int type )

static CV_NODISCARD_STD MatExpr

ones(
    int ndims,
    const int * sz,
    int type )

static CV_NODISCARD_STD MatExpr

ones(
    int rows,
    int cols,
    int type )

Returns an array of all 1’s of the specified size and type.

static CV_NODISCARD_STD MatExpr

ones(
    Size size,
    int type )

static void

setDefaultAllocator(MatAllocator * allocator)

static CV_NODISCARD_STD MatExpr

zeros(
    const MatShape & shape,
    int type )

static CV_NODISCARD_STD MatExpr

zeros(
    int ndims,
    const int * sz,
    int type )

static CV_NODISCARD_STD MatExpr

zeros(
    int rows,
    int cols,
    int type )

Returns a zero array of the specified size and type.

static CV_NODISCARD_STD MatExpr

zeros(
    Size size,
    int type )

Public Attributes#

Public Attributes inherited from cv::Mat

Return

Name

Description

MatAllocator *

allocator

custom allocator

int

cols

uchar *

data

pointer to the data

const uchar *

dataend

const uchar *

datalimit

const uchar *

datastart

helper fields used in locateROI and adjustROI

int

dims

the matrix dimensionality, >= 2

int

dummy

int

flags

int

rows

the number of rows and columns or (-1, -1) when the matrix has more than 2 dimensions

MatSize

size

MatStep

step

UMatData *

u

interaction with UMat

Detailed Description#

Template matrix class derived from Mat.

template<typename _Tp> class Mat_ : public Mat
{
public:
    // ... some specific methods
    //         and
    // no new extra fields
};
The class Mat_<_Tp> is a thin template wrapper on top of the Mat class. It does not have any extra data fields. Nor this class nor Mat has any virtual methods. Thus, references or pointers to these two classes can be freely but carefully converted one to another. For example:
// create a 100x100 8-bit matrix
Mat M(100,100,CV_8U);
// this will be compiled fine. no any data conversion will be done.
Mat_<float>& M1 = (Mat_<float>&)M;
// the program is likely to crash at the statement below
M1(99,99) = 1.f;
While Mat is sufficient in most cases, Mat_ can be more convenient if you use a lot of element access operations and if you know matrix type at the compilation time. Note that Mat::at(int y,int x) and Mat_::operator()(int y,int x) do absolutely the same and run at the same speed, but the latter is certainly shorter:
Mat_<double> M(20,20);
for(int i = 0; i < M.rows; i++)
    for(int j = 0; j < M.cols; j++)
        M(i,j) = 1./(i+j+1);
Mat E, V;
eigen(M,E,V);
cout << E.at<double>(0,0)/E.at<double>(M.rows-1,0);
To use Mat_ for multi-channel images/matrices, pass Vec as a Mat_ parameter:
// allocate a 320x240 color image and fill it with green (in RGB space)
Mat_<Vec3b> img(240, 320, Vec3b(0,255,0));
// now draw a diagonal white line
for(int i = 0; i < 100; i++)
    img(i,i)=Vec3b(255,255,255);
// and now scramble the 2nd (red) channel of each pixel
for(int i = 0; i < img.rows; i++)
    for(int j = 0; j < img.cols; j++)
        img(i,j)[2] ^= (uchar)(i ^ j);
Mat_ is fully compatible with C++11 range-based for loop. For example such loop can be used to safely apply look-up table:
void applyTable(Mat_<uchar>& I, const uchar* const table)
{
    for(auto& pixel : I)
    {
        pixel = table[pixel];
    }
}

Examples
samples/cpp/image_alignment.cpp, samples/cpp/stitching_detailed.cpp, samples/cpp/tutorial_code/core/file_input_output/file_input_output.cpp, samples/cpp/tutorial_code/core/how_to_scan_images/how_to_scan_images.cpp, samples/cpp/tutorial_code/features/Homography/decompose_homography.cpp, samples/cpp/tutorial_code/features/Homography/homography_from_camera_displacement.cpp, and samples/cpp/tutorial_code/features/Homography/pose_from_homography.cpp.

Member Typedef Documentation#

channel_type#

typedef DataType< Tp >::channel_type cv::Mat::channel_type

const_iterator#

typedef MatConstIterator_< Tp > cv::Mat::const_iterator

iterator#

typedef MatIterator_< Tp > cv::Mat::iterator

value_type#

typedef Tp cv::Mat::value_type

Constructor & Destructor Documentation#

Mat_()#

cv::Mat_::Mat_()

default constructor

Mat_()#

cv::Mat_::Mat_(const Mat & m)

copy/conversion constructor. If m is of different type, it’s converted

Mat_()#

cv::Mat_::Mat_(const Mat_ & m)

copy constructor

Mat_()#

cv::Mat_::Mat_(
const Mat_ & m,
const Range & rowRange,
const Range & colRange = Range::all() )

selects a submatrix

Mat_()#

cv::Mat_::Mat_(
const Mat_ & m,
const Range * ranges )

selects a submatrix, n-dim version

Mat_()#

cv::Mat_::Mat_(
const Mat_ & m,
const Rect & roi )

selects a submatrix

Mat_()#

cv::Mat_::Mat_(
const Mat_ & m,
const std::vector< Range > & ranges )

selects a submatrix, n-dim version

Mat_()#

cv::Mat_::Mat_(const MatCommaInitializer_< _Tp > & commaInitializer)

Mat_()#

cv::Mat_::Mat_(const MatExpr & e)

from a matrix expression

Mat_()#

template<int m, int n>
cv::Mat_::Mat_(
const Matx< typename DataType< _Tp >::channel_type, m, n > & mtx,
bool copyData = true )

Mat_()#

cv::Mat_::Mat_(
const Point3_< typename DataType< _Tp >::channel_type > & pt,
bool copyData = true )

Mat_()#

cv::Mat_::Mat_(
const Point_< typename DataType< _Tp >::channel_type > & pt,
bool copyData = true )

Mat_()#

template<std::size_t _Nm>
cv::Mat_::Mat_(
const std::array< _Tp, _Nm > & arr,
bool copyData = false )

Mat_()#

cv::Mat_::Mat_(
const std::initializer_list< int > sizes,
const std::initializer_list< _Tp > values )

Mat_()#

cv::Mat_::Mat_(
const std::vector< _Tp > & vec,
bool copyData = false )

makes a matrix out of Vec, std::vector, Point_ or Point3_. In OpenCV 5.x, from std::vector, creates a matrix with a single row (cols = vector size). (Previous versions: the matrix had a single column.)

Mat_()#

template<int n>
cv::Mat_::Mat_(
const Vec< typename DataType< _Tp >::channel_type, n > & vec,
bool copyData = true )

Mat_()#

cv::Mat_::Mat_(
int _ndims,
const int * _sizes )

n-dim array constructor

Mat_()#

cv::Mat_::Mat_(
int _ndims,
const int * _sizes,
_Tp * _data,
const size_t * _steps = 0 )

constructs n-dim matrix on top of user-allocated data. steps are in bytes(!!!), regardless of the type

Mat_()#

cv::Mat_::Mat_(
int _ndims,
const int * _sizes,
const _Tp & value )

n-dim array constructor that sets each matrix element to specified value

Mat_()#

cv::Mat_::Mat_(
int _rows,
int _cols )

equivalent to Mat(_rows, _cols, DataType<_Tp>::type)

Mat_()#

cv::Mat_::Mat_(
int _rows,
int _cols,
_Tp * _data,
size_t _step = AUTO_STEP )

constructs a matrix on top of user-allocated data. step is in bytes(!!!), regardless of the type

Mat_()#

cv::Mat_::Mat_(
int _rows,
int _cols,
const _Tp & value )

constructor that sets each matrix element to specified value

Mat_()#

cv::Mat_::Mat_(Mat && m)

Mat_()#

cv::Mat_::Mat_(Mat_ && m)

Mat_()#

cv::Mat_::Mat_(MatExpr && e)

Mat_()#

cv::Mat_::Mat_(Size _size)

equivalent to Mat(_size, DataType<_Tp>::type)

Mat_()#

cv::Mat_::Mat_(
Size _size,
const _Tp & value )

constructor that sets each matrix element to specified value

Mat_()#

cv::Mat_::Mat_(std::initializer_list< _Tp > values)

Member Function Documentation#

adjustROI()#

Mat_ & cv::Mat_::adjustROI(
int dtop,
int dbottom,
int dleft,
int dright )

some more overridden methods

begin()#

iterator cv::Mat_::begin()

iterators; they are smart enough to skip gaps in the end of rows

begin()#

const_iterator cv::Mat_::begin()

channels()#

int cv::Mat_::channels()

clone()#

CV_NODISCARD_STD Mat_ cv::Mat_::clone()

col()#

Mat_ cv::Mat_::col(int x)

create()#

void cv::Mat_::create(
int _ndims,
const int * _sizes )

equivalent to Mat::create(_ndims, _sizes, DatType<_Tp>::type)

create()#

void cv::Mat_::create(
int _rows,
int _cols )

equivalent to Mat::create(_rows, _cols, DataType<_Tp>::type)

create()#

void cv::Mat_::create(Size _size)

equivalent to Mat::create(_size, DataType<_Tp>::type)

createSameSize()#

void cv::Mat_::createSameSize(InputArray arr)

equivalent to Mat::create(arr.ndims, arr.size.p, DatType<_Tp>::type)

cross()#

Mat_ cv::Mat_::cross(const Mat_ & m)

cross-product

depth()#

int cv::Mat_::depth()

diag()#

Mat_ cv::Mat_::diag(int d = 0)

elemSize()#

size_t cv::Mat_::elemSize()

overridden forms of Mat::elemSize() etc.

elemSize1()#

size_t cv::Mat_::elemSize1()

end()#

iterator cv::Mat_::end()

end()#

const_iterator cv::Mat_::end()

forEach()#

template<typename Functor>
void cv::Mat_::forEach(const Functor & operation)

template methods for operation over all matrix elements.

forEach()#

template<typename Functor>
void cv::Mat_::forEach(const Functor & operation)

operator Mat_< T2 >()#

template<typename T2>
cv::Mat_::operator Mat_< T2 >()

data type conversion

operator Matx< typename DataType< _Tp >::channel_type, m, n >()#

template<int m, int n>
cv::Mat_::operator Matx< typename DataType< _Tp >::channel_type, m, n >()

conversion to Matx

operator std::array< _Tp, _Nm >()#

template<std::size_t _Nm>
cv::Mat_::operator std::array< _Tp, _Nm >()

conversion to array.

operator std::vector< _Tp >()#

cv::Mat_::operator std::vector< _Tp >()

conversion to vector.

operator Vec< typename DataType< _Tp >::channel_type, n >()#

template<int n>
cv::Mat_::operator Vec< typename DataType< _Tp >::channel_type, n >()

conversion to Vec

operator()()#

Tp & cv::Mat::operator()(const int * idx)

returns reference to the specified element

operator()()#

const Tp & cv::Mat::operator()(const int * idx)

returns read-only reference to the specified element

operator()()#

Mat_ cv::Mat_::operator()(
const Range & rowRange,
const Range & colRange )

operator()()#

Mat_ cv::Mat_::operator()(const Range * ranges)

operator()()#

Mat_ cv::Mat_::operator()(const Rect & roi)

operator()()#

Mat_ cv::Mat_::operator()(const std::vector< Range > & ranges)

operator()()#

template<int n>
Tp & cv::Mat::operator()(const Vec< int, n > & idx)

returns reference to the specified element

operator()()#

template<int n>
const Tp & cv::Mat::operator()(const Vec< int, n > & idx)

returns read-only reference to the specified element

operator()()#

Tp & cv::Mat::operator()(int idx0)

returns reference to the specified element (1D case)

operator()()#

const Tp & cv::Mat::operator()(int idx0)

returns read-only reference to the specified element (1D case)

operator()()#

Tp & cv::Mat::operator()(
int idx0,
int idx1,
int idx2 )

returns reference to the specified element (3D case)

operator()()#

const Tp & cv::Mat::operator()(
int idx0,
int idx1,
int idx2 )

returns read-only reference to the specified element (3D case)

operator()()#

Tp & cv::Mat::operator()(
int row,
int col )

returns reference to the specified element (2D case)

operator()()#

const Tp & cv::Mat::operator()(
int row,
int col )

returns read-only reference to the specified element (2D case)

operator()()#

Tp & cv::Mat::operator()(Point pt)

operator()()#

const Tp & cv::Mat::operator()(Point pt)

operator=()#

Mat_ & cv::Mat_::operator=(const _Tp & s)

set all the elements to s.

operator=()#

Mat_ & cv::Mat_::operator=(const Mat & m)

operator=()#

Mat_ & cv::Mat_::operator=(const Mat_ & m)

operator=()#

Mat_ & cv::Mat_::operator=(const MatExpr & e)

assign a matrix expression

operator=()#

Mat_ & cv::Mat_::operator=(Mat && m)

operator=()#

Mat_ & cv::Mat_::operator=(Mat_ && m)

operator#

Tp * cv::Mat::operator[](int y)

more convenient forms of row and element access operators

operator#

const Tp * cv::Mat::operator[](int y)

rbegin()#

std::reverse_iterator< iterator > cv::Mat_::rbegin()

rbegin()#

std::reverse_iterator< const_iterator > cv::Mat_::rbegin()

release()#

void cv::Mat_::release()

equivalent to Mat::release()

rend()#

std::reverse_iterator< iterator > cv::Mat_::rend()

rend()#

std::reverse_iterator< const_iterator > cv::Mat_::rend()

row()#

Mat_ cv::Mat_::row(int y)

overridden forms of Mat::row() etc.

step1()#

size_t cv::Mat_::step1(int i = 0)

stepT()#

size_t cv::Mat_::stepT(int i = 0)

returns step()/sizeof(_Tp)

type()#

int cv::Mat_::type()

eye()#

static CV_NODISCARD_STD MatExpr cv::Mat_::eye(
int rows,
int cols )

eye()#

static CV_NODISCARD_STD MatExpr cv::Mat_::eye(Size size)

ones()#

static CV_NODISCARD_STD MatExpr cv::Mat_::ones(
int _ndims,
const int * _sizes )

ones()#

static CV_NODISCARD_STD MatExpr cv::Mat_::ones(
int rows,
int cols )

ones()#

static CV_NODISCARD_STD MatExpr cv::Mat_::ones(Size size)

zeros()#

static CV_NODISCARD_STD MatExpr cv::Mat_::zeros(
int _ndims,
const int * _sizes )

zeros()#

static CV_NODISCARD_STD MatExpr cv::Mat_::zeros(
int rows,
int cols )

overridden forms of Mat::zeros() etc. Data type is omitted, of course

zeros()#

static CV_NODISCARD_STD MatExpr cv::Mat_::zeros(Size size)

Source file#

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