How can I change the data type used to store pixels in an instance of the Mat class?
For example, after reading the image using the line below
Mat i = imread (file, 0);
I get a halftone image with pixels of type unsigned char. I want to change this to double.
What is the best way to do the conversion? I could not find a function for this.
Thanks in advance
source
share