good day all,
i am using openCV to load a color bmp file, i use:
the data is stored as a char*Code:IplImage* image = cvLoadImage("Color.bmp",1);
i wish to convert this data into a RGB float array.
however if i simply go through the string and convert each char using a (float) cast, i sometimes end up with negative numbers.
is there a proper way of converting chars that represent color values into proper floats without getting negs ??