Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Not able to create Mat object with float data

dfI am trying to create a Mat object with a float type data. Mat kernelxx = Mat( HEIGHT, WIDTH, CV_32FC1 );

But what I receive is unsigned char data of type *uchar::Mat::data. Can any one please help me. I also tried using create constructor as well as convertTo() method to make a float data. But all of them create only *uchar data.

Not able to create Mat object with float data

dfI I am trying to create a Mat object with a float type data. Mat kernelxx = Mat( HEIGHT, WIDTH, CV_32FC1 );

But what I receive is unsigned char data of type *uchar::Mat::data. Can any one please help me. I also tried using create constructor as well as convertTo() method to make a float data. But all of them create only *uchar data.