struct IplImage

Overview

The IplImage is taken from the Intel Image Processing Library, in which the format is native. More…

#include <types_c.h>

struct IplImage
{
    // fields

    int align;
    int alphaChannel;
    int BorderConst[4];
    int BorderMode[4];
    char channelSeq[4];
    char colorModel[4];
    int dataOrder;
    int depth;
    int height;
    int ID;
    char* imageData;
    char* imageDataOrigin;
    void* imageId;
    int imageSize;
    struct _IplImage* maskROI;
    int nChannels;
    int nSize;
    int origin;
    struct _IplROI* roi;
    struct _IplTileInfo* tileInfo;
    int width;
    int widthStep;

    // methods

    _IplImage();
    _IplImage(const cv::Mat& m);
};

Detailed Documentation

The IplImage is taken from the Intel Image Processing Library, in which the format is native. OpenCV only supports a subset of possible IplImage formats, as outlined in the parameter list above.

In addition to the above restrictions, OpenCV handles ROIs differently. OpenCV functions require that the image size or ROI size of all source and destination images match exactly. On the other hand, the Intel Image Processing Library processes the area of intersection between the source and destination images (or ROIs), allowing them to vary independently.

Fields

int align

Alignment of image rows (4 or 8). OpenCV ignores it and uses widthStep instead.

int alphaChannel

Ignored by OpenCV

int BorderConst[4]

Ditto.

int BorderMode[4]

Ignored by OpenCV.

char channelSeq[4]

ditto

char colorModel[4]

Ignored by OpenCV

int dataOrder

0 - interleaved color channels, 1 - separate color channels. cvCreateImage can only create interleaved images

int depth

Pixel depth in bits: IPL_DEPTH_8U, IPL_DEPTH_8S, IPL_DEPTH_16S, IPL_DEPTH_32S, IPL_DEPTH_32F and IPL_DEPTH_64F are supported.

int height

Image height in pixels.

int ID

version (=0)

char* imageData

Pointer to aligned image data.

char* imageDataOrigin

Pointer to very origin of image data (not necessarily aligned) - needed for correct deallocation

void* imageId

” “

int imageSize

Image data size in bytes (==image->height*image->widthStep in case of interleaved data)

struct _IplImage* maskROI

Must be NULL.

int nChannels

Most of OpenCV functions support 1,2,3 or 4 channels

int nSize

sizeof(IplImage)

int origin

0 - top-left origin, 1 - bottom-left origin (Windows bitmaps style).

struct _IplROI* roi

Image ROI. If NULL, the whole image is selected.

struct _IplTileInfo* tileInfo

” “

int width

Image width in pixels.

int widthStep

Size of aligned image row in bytes.