OpenCV  5.0.0alpha-pre
Open Source Computer Vision
Loading...
Searching...
No Matches
mat.hpp File Reference
#include "opencv2/core/matx.hpp"
#include "opencv2/core/types.hpp"
#include "opencv2/core/bufferpool.hpp"
#include <array>
#include <type_traits>
#include "opencv2/core/mat.inl.hpp"
Include dependency graph for mat.hpp:
This graph shows which files directly or indirectly include this file:

Classes

class  cv::_InputArray
 This is the proxy class for passing read-only input arrays into OpenCV functions. More...
 
class  cv::_InputOutputArray
 
class  cv::_OutputArray
 This type is very similar to InputArray except that it is used for input/output and output function parameters. More...
 
struct  cv::SparseMat::Hdr
 the sparse matrix header More...
 
class  cv::Mat
 n-dimensional dense array class More...
 
class  cv::Mat_< _Tp >
 Template matrix class derived from Mat. More...
 
class  cv::MatAllocator
 Custom array allocator. More...
 
class  cv::MatCommaInitializer_< _Tp >
 Comma-separated Matrix Initializer. More...
 
class  cv::MatConstIterator
 
class  cv::MatConstIterator_< _Tp >
 Matrix read-only iterator. More...
 
class  cv::MatExpr
 Matrix expression representation This is a list of implemented matrix operations that can be combined in arbitrary complex expressions (here A, B stand for matrices ( Mat ), s for a scalar ( Scalar ), alpha for a real-valued scalar ( double )): More...
 
class  cv::MatIterator_< _Tp >
 Matrix read-write iterator. More...
 
class  cv::MatOp
 
struct  cv::MatShape
 Represents shape of a matrix/tensor. Previously, MatShape was defined as an alias of std::vector<int>, but now we use a special structure that provides a few extra benefits: More...
 
struct  cv::MatSize
 
struct  cv::MatStep
 
class  cv::NAryMatIterator
 n-ary multi-dimensional array iterator. More...
 
struct  cv::SparseMat::Node
 sparse matrix node - element of a hash table More...
 
class  cv::SparseMat
 The class SparseMat represents multi-dimensional sparse numerical arrays. More...
 
class  cv::SparseMat_< _Tp >
 Template sparse n-dimensional array class derived from SparseMat. More...
 
class  cv::SparseMatConstIterator
 Read-Only Sparse Matrix Iterator. More...
 
class  cv::SparseMatConstIterator_< _Tp >
 Template Read-Only Sparse Matrix Iterator Class. More...
 
class  cv::SparseMatIterator
 Read-write Sparse Matrix Iterator. More...
 
class  cv::SparseMatIterator_< _Tp >
 Template Read-Write Sparse Matrix Iterator Class. More...
 
class  cv::UMat
 
struct  cv::UMatData
 

Namespaces

namespace  cv
 

Typedefs

typedef const _InputArraycv::InputArray
 
typedef InputArray cv::InputArrayOfArrays
 
typedef const _InputOutputArraycv::InputOutputArray
 
typedef InputOutputArray cv::InputOutputArrayOfArrays
 
typedef Mat_< ucharcv::Mat1b
 
typedef Mat_< double > cv::Mat1d
 
typedef Mat_< float > cv::Mat1f
 
typedef Mat_< int > cv::Mat1i
 
typedef Mat_< short > cv::Mat1s
 
typedef Mat_< ushortcv::Mat1w
 
typedef Mat_< Vec2bcv::Mat2b
 
typedef Mat_< Vec2dcv::Mat2d
 
typedef Mat_< Vec2fcv::Mat2f
 
typedef Mat_< Vec2icv::Mat2i
 
typedef Mat_< Vec2scv::Mat2s
 
typedef Mat_< Vec2wcv::Mat2w
 
typedef Mat_< Vec3bcv::Mat3b
 
typedef Mat_< Vec3dcv::Mat3d
 
typedef Mat_< Vec3fcv::Mat3f
 
typedef Mat_< Vec3icv::Mat3i
 
typedef Mat_< Vec3scv::Mat3s
 
typedef Mat_< Vec3wcv::Mat3w
 
typedef Mat_< Vec4bcv::Mat4b
 
typedef Mat_< Vec4dcv::Mat4d
 
typedef Mat_< Vec4fcv::Mat4f
 
typedef Mat_< Vec4icv::Mat4i
 
typedef Mat_< Vec4scv::Mat4s
 
typedef Mat_< Vec4wcv::Mat4w
 
typedef const _OutputArraycv::OutputArray
 
typedef OutputArray cv::OutputArrayOfArrays
 

Enumerations

enum  cv::AccessFlag {
  cv::ACCESS_READ =1<<24 ,
  cv::ACCESS_WRITE =1<<25 ,
  cv::ACCESS_RW =3<<24 ,
  cv::ACCESS_MASK =ACCESS_RW ,
  cv::ACCESS_FAST =1<<26
}
 
enum  cv::DataLayout {
  cv::DATA_LAYOUT_UNKNOWN = 0 ,
  cv::DATA_LAYOUT_ND = 1 ,
  cv::DATA_LAYOUT_NCHW = 2 ,
  cv::DATA_LAYOUT_NCDHW = 3 ,
  cv::DATA_LAYOUT_NHWC = 4 ,
  cv::DATA_LAYOUT_NDHWC = 5 ,
  cv::DATA_LAYOUT_PLANAR = 6 ,
  cv::DATA_LAYOUT_BLOCK = 7 ,
  cv::DNN_LAYOUT_UNKNOWN = 0 ,
  cv::DNN_LAYOUT_ND = 1 ,
  cv::DNN_LAYOUT_NCHW = 2 ,
  cv::DNN_LAYOUT_NCDHW = 3 ,
  cv::DNN_LAYOUT_NHWC = 4 ,
  cv::DNN_LAYOUT_NDHWC = 5 ,
  cv::DNN_LAYOUT_PLANAR = 6 ,
  cv::DNN_LAYOUT_BLOCK = 7
}
 Enum of data layout for model inference. More...
 
enum  cv::UMatUsageFlags {
  cv::USAGE_DEFAULT = 0 ,
  cv::USAGE_ALLOCATE_HOST_MEMORY = 1 << 0 ,
  cv::USAGE_ALLOCATE_DEVICE_MEMORY = 1 << 1 ,
  cv::USAGE_ALLOCATE_SHARED_MEMORY = 1 << 2 ,
  cv::__UMAT_USAGE_FLAGS_32BIT = 0x7fffffff
}
 Usage flags for allocator. More...
 

Functions

std::string cv::layoutToString (DataLayout layout)
 
InputOutputArray cv::noArray ()
 Returns an empty InputArray or OutputArray.
 
bool cv::operator!= (const MatShape &shape1, const MatShape &shape2)
 
bool cv::operator== (const MatShape &shape1, const MatShape &shape2)
 
template<typename _Tp >
static _InputArray cv::rawIn (_Tp &v)
 
template<typename _Tp >
static _InputOutputArray cv::rawInOut (_Tp &v)
 
template<typename _Tp >
static _OutputArray cv::rawOut (_Tp &v)