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 ?
2 | No.2 Revision |
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 ..