Ask Your Question

Revision history [back]

As I know, The imageData is a pointer (char *) to the image raw data in the IplImage structure . You can access to the same location of memory by using these lines of codes:

unsigned char *imagePointer = (unsigned char*) (image.data);

or

char *imagePointer = (char*) (image.data);

where the image is cv::Mat

Consequently the imagePointer[0] is equivalent to IplImage.imagedata[0]