Specifications

Intel
®
Image Processing Library Reference Manual
4-8
4
Tiling Fields in the IplImage Structure
Image tiling in the Image Processing Library was described in Chapter 2.
The following fields from the IplImage structure are used in tiled images:
struct IplImage {
...
void* imageId;
IplTileInfo *tileInfo;
...
}
The imageId field can be used by the application, and is ignored by the
library. The
tileInfo field contains information on tiling. It is described
in the next section.
The library expects either the
tileInfo pointer or the imageData pointer
to be
NULL. If the former is NULL, the image is not tiled; if the latter is
NULL, the image is tiled. It is an error condition if both or neither of the two
are
NULL.
IplTileInfo Structure
This structure provides information for image tiling:
typedef struct _IplTileInfo
{
IplCallBack callBack;
void *id;
char* tileData
int width, height;
} IplTileInfo;
Here callBack is the call-back function (see “Call-backs” in Chapter 2);
id is an additional identification field; width and height are the tile sizes
for the image; and
tileData is the field which the call-back function
should point to the requested tile.