Template Class Mat

Inheritance Relationships

Derived Type

Class Documentation

template<int T, int ROWS, int COLS, int NPC, int XFCVDEPTH = _XFCVDEPTH_DEFAULT>
class Mat

Subclassed by xf::cv::MMIter< PTR_WIDTH, T, ROWS, COLS, NPC, XFCVDEPTH >

Public Types

using _DATATTYPE = typename std::conditional<(XFCVDEPTH < 0), DATATYPE*, typename std::conditional<(XFCVDEPTH == 0), hls::stream<DATATYPE>, hls::stream<DATATYPE, XFCVDEPTH>>::type>::type

Public Functions

typedef XF_TNAME (T, NPC) DATATYPE
inline Mat()
inline Mat(Size _sz)
inline Mat(int _rows, int _cols)
Mat(int _size, int _rows, int _cols)
inline Mat(int _rows, int _cols, void *_data)
inline Mat(const Mat&)
~Mat()
inline Mat &operator=(const Mat&)
template<int D = XFCVDEPTH, typename std::enable_if<(D < 0)>::type* = nullptr>
inline void alloc_data()
template<int D = XFCVDEPTH, typename std::enable_if<(D >= 0)>::type* = nullptr>
inline void alloc_data()
template<int D = XFCVDEPTH, typename std::enable_if<(D < 0)>::type* = nullptr>
inline void free_data()
template<int D = XFCVDEPTH, typename std::enable_if<(D >= 0)>::type* = nullptr>
inline void free_data()
template<int D = XFCVDEPTH, typename std::enable_if<(D < 0)>::type* = nullptr>
inline void copyData(const Mat &src)
template<int D = XFCVDEPTH, typename std::enable_if<(D >= 0)>::type* = nullptr>
inline void copyData(const Mat &src)
template<int D = XFCVDEPTH, typename std::enable_if<(D < 0)>::type* = nullptr>
inline void assignDataPtr(void *_data)
template<int D = XFCVDEPTH, typename std::enable_if<(D >= 0)>::type* = nullptr>
inline void assignDataPtr(void *_data)
template<int D = XFCVDEPTH, typename std::enable_if<(D < 0)>::type* = nullptr>
inline read(int index)
template<int D = XFCVDEPTH, typename std::enable_if<(D >= 0)>::type* = nullptr>
inline read(int index)
inline float read_float(int index)
template<int D = XFCVDEPTH, typename std::enable_if<(D< 0)>::type * = nullptr> inline void write (int index, XF_TNAME(T, NPC) val)
template<int D = XFCVDEPTH, typename std::enable_if<(D >=0)>::type * = nullptr> inline void write (int index, XF_TNAME(T, NPC) val)
inline void write_float(int index, float val)
template<int D = XFCVDEPTH, typename std::enable_if<(D >= 0)>::type* = nullptr>
inline void init(int _rows, int _cols, void *_data)
template<int D = XFCVDEPTH, typename std::enable_if<(D < 0)>::type* = nullptr>
inline void init(int _rows, int _cols, void *_data)
inline void init(int _rows, int _cols, bool allocate = true)
inline void copyTo(void *fromData)
inline unsigned char *copyFrom()
const int type() const
const int depth() const
const int channels() const
template<int DST_T>
void convertTo(Mat<DST_T, ROWS, COLS, NPC, XFCVDEPTH> &dst, int otype, double alpha = 1, double beta = 0)
template<int DST_T>
inline void convertTo(Mat<DST_T, ROWS, COLS, NPPC, XFCVDEPTH> &dst, int otype, double alpha, double beta)

Public Members

unsigned char allocatedFlag
int rows
int cols
int size
_DATATTYPE data