Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
kernelxx.ptr<float>(0); //will give you the pointer to the 1st row.

(the underlying data buffer is still uchar*)

float *fp = kernelxx.ptr<float>(0); //will give you the pointer to the 1st row.

(the underlying data buffer is still uchar*)

no worries, that's ok and expected.

float *fp = kernelxx.ptr<float>(0); //will give you the pointer to the 1st row.

(the underlying data buffer is still uchar*)

no worries, that's ok and expected.your Mat creation is correct.

float *fp = kernelxx.ptr<float>(0); //will give you the pointer to the 1st row.

(the underlying data buffer is still uchar*)