I am trying to convert from CV_16SC1 to CV_32SC1
my code is quite simple:
//print value of data.type() = 16
data.convertTo(data, CV_32FC1);
//print new value of data.type() = 21
Is there a reason why the conversion does not happen? Maybe for some reason it's not possible to convert between those two types?
Because according to this post: Getting enum names (e.g. CV_32FC1) of OpenCV image types?
my result is CV_32SC1 which is very undesirable since I am trying to perform matrix multiplication on my matrix that's why I want it to have floating point type.