2015-12-08 00:03:22 -0600 | commented question | Why Iplimage using char* pointing to raw image data instead of unsigned char* pointer just like Mat did? because I knew Mat before I got to know Iplimage. I know that Iplimage is deprecated, what I want to know is that why is Iplimage defined like that, since the rang of the color hasn't changed over time. |
2015-12-07 11:30:47 -0600 | asked a question | Why Iplimage using char* pointing to raw image data instead of unsigned char* pointer just like Mat did? Here's the data structure of Iplimage: As I said, the pointer to imageData is a char*. The pointer to data is uchar* which is unsigned char*. Here rises a problem that we all know the elements of a color(gray, RGB which are commonly used while loading image) ranges from 0~255, which can be adequately expressed by 8 bits(unsigned char). Why don't use uchar* in the Iplimage data structure, same as Mat did? |