Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

please use cv::cvtColor (c++ api) , not cvCvtColor (dead c-api)

btw, your next line:

 graymat.convertTo( Mat,CV_32F);

looks broken, too. what is Mat doing there ?

please use cv::cvtColor (c++ api) , not cvCvtColor (dead c-api)

btw, your next line:

 graymat.convertTo( Mat,CV_32F);

looks broken, too. what is Mat doing there ?

i guess, you wanted something like this:

Mat float_mat;
graymat.convertTo( float_mat,CV_32F);
// do something with float_mat ..