Not able to create Mat object with float data
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.