QMat Class

Open cv matrix wrapper. More...

Header: #include <QMat>
Instantiated By: Mat
Inherits: QQuickItem

Public Types

enum Type { CV8U, CV8S, CV16U, CV16S, ..., CV64F }

Public Functions

QMat(QQuickItem *parent = 0)
QMat(cv::Mat *mat, QQuickItem *parent = 0)
~QMat()
cv::Mat *cvMat()

Public Slots

QMat *cloneMat()
QMat *createOwnedObject()
QMatAccess *data()
QSize dataSize() const

Static Public Members

void cleanUp()
QMat *nullMat()

Detailed Description

Open cv matrix wrapper.

The class represents the wrapper for the opencv matrix element to be passed around in the QML structure. To access its cv mat vaue, use the cvMat() function.

To access it's pixels within qml, use the Mat::data() function.

Member Type Documentation

enum QMat::Type

ConstantValue
QMat::CV8UCV_8U
QMat::CV8SCV_8S
QMat::CV16UCV_16U
QMat::CV16SCV_16S
QMat::CV32SCV_32S
QMat::CV32FCV_32F
QMat::CV64FCV_64F

Member Function Documentation

QMat::QMat(QQuickItem *parent = 0)

QMat::QMat

Params : parent

QMat::QMat(cv::Mat *mat, QQuickItem *parent = 0)

QMat::QMat

Params : mat , parent

QMat::~QMat()

QMat::~QMat

[static] void QMat::cleanUp()

Internal method used to clean up the null matrix.

[slot] QMat *QMat::cloneMat()

Returns a cloned matrix that is owned by the javascript engine

[slot] QMat *QMat::createOwnedObject()

Returns a shallow copied matrix that is owned by the javascript engine

cv::Mat *QMat::cvMat()

Returns the contained open cv mat.

[slot] QMatAccess *QMat::data()

Retruns the matrix access element.

[slot] QSize QMat::dataSize() const

Returns the size of the matrix element

[static] QMat *QMat::nullMat()

Returns a null matrix