Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Pointer to image problem

Dear everyone, I faced with an error when using below code:

void init(Mat *mF) {
Mat mm = (Mat_<float>(4, 4) << 1, 1, 1, 2,
    2, 1, 0, 1,
    1, 0, 2, 1,
    3, 0, 0, 1);
*mF = mm;

}

The error opened below line:

inline void Mat::release(){
if( u && CV_XADD(&u->refcount, -1) == 1 )
    deallocate();
u = NULL;
datastart = dataend = datalimit = data = 0;
for(int i = 0; i < dims; i++)
    size.p[i] = 0;

} Please helpt o explain, and how I can correct it.