IplImage - gonft/OpenCVApple GitHub Wiki
struct_IplImage
{
int nSize; /* sizeof(IplImage) */
int ID; /* version (=0) */
int nChannels; /* Most of OpenCV functions support 1,2,3 or 4 channels */
int alphaChannel; /* ignored by OpenCV */
//pixel depth in bits: IPL_DEPTH_8U, IPL_DEPTH_8S, DEPTH_16U, IPL_DEPTH_16S, IPL_DEPTH_32S, IPL_DEPTH_32F and IPL_DEPTH_64F are supported //
int depth;
char colorModel[4]; /*ignored by OpenCV */
char channelSeq[4]; /*ditto*/
int dataOrder; /* 0: interleaved color channels, 1: separate color channels.
cvCreateImage can on ly create interleaved images */
int origin; /* 0: top-left origin, 1: bottom-left origin(Widows bitmaps style) */
int align; /* Alignment of image rows (4 or 8). OpenCV ignores it and uses widthStep instead */
int width; /* image width in pixels */
int height; /* image height in pixels */
struct _IplROI *roi; /* image ROI, when it is not NULL, this specifies image region to process */
struct_IplImage *maskROI; /* must be NULL in OpenCV */
void *imagedID; /* ditto */
struct _IplTileInfo * tileInfo; /*image data size in bytes (=image->height*image->widthStep in case of interleaved data)*/
char *imageData; /*pointer to aligned image row in bytes */
int widthStep; /* size of aligned image row in bytes */
int BorderModel[4]; /* border completion mode, ignored by OpenCV */
int BorderConst[4]; /*ditto */
char *imageDataOrigin; /* pointer to a very origin of image data (not necessarily aligned)- it is needed forfr correct image deallocation */
} IplImage;