opencv on mbed

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

_IplImage Struct Reference

_IplImage Struct Reference
[C structures and operations]

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

#include <types_c.h>

Data Fields

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.
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.
char colorModel [4]
 Ignored by OpenCV.
char channelSeq [4]
 ditto
int dataOrder
 0 - interleaved color channels, 1 - separate color channels.
int origin
 0 - top-left origin, 1 - bottom-left origin (Windows bitmaps style).
int align
 Alignment of image rows (4 or 8).
int width
 Image width in pixels.
int height
 Image height in pixels.
struct _IplROI * roi
 Image ROI.
struct _IplImagemaskROI
 Must be NULL.
void * imageId
 " "
struct _IplTileInfo * tileInfo
 " "
int imageSize
 Image data size in bytes (==image->height*image->widthStep in case of interleaved data)
char * imageData
 Pointer to aligned image data.
int widthStep
 Size of aligned image row in bytes.
int BorderMode [4]
 Ignored by OpenCV.
int BorderConst [4]
 Ditto.
char * imageDataOrigin
 Pointer to very origin of image data (not necessarily aligned) - needed for correct deallocation.

Detailed Description

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.

Definition at line 296 of file core/types_c.h.


Field Documentation

int align

Alignment of image rows (4 or 8).

OpenCV ignores it and uses widthStep instead.

Definition at line 314 of file core/types_c.h.

Ignored by OpenCV.

Definition at line 305 of file core/types_c.h.

int BorderConst[4]

Ditto.

Definition at line 328 of file core/types_c.h.

int BorderMode[4]

Ignored by OpenCV.

Definition at line 327 of file core/types_c.h.

char channelSeq[4]

ditto

Definition at line 309 of file core/types_c.h.

char colorModel[4]

Ignored by OpenCV.

Definition at line 308 of file core/types_c.h.

int dataOrder

0 - interleaved color channels, 1 - separate color channels.

cvCreateImage can only create interleaved images

Definition at line 310 of file core/types_c.h.

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.

Definition at line 306 of file core/types_c.h.

int height

Image height in pixels.

Definition at line 317 of file core/types_c.h.

int ID

version (=0)

Definition at line 303 of file core/types_c.h.

char* imageData

Pointer to aligned image data.

Definition at line 325 of file core/types_c.h.

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

Definition at line 329 of file core/types_c.h.

void* imageId

" "

Definition at line 320 of file core/types_c.h.

int imageSize

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

Definition at line 322 of file core/types_c.h.

struct _IplImage* maskROI

Must be NULL.

Definition at line 319 of file core/types_c.h.

int nChannels

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

Definition at line 304 of file core/types_c.h.

int nSize

sizeof(IplImage)

Definition at line 302 of file core/types_c.h.

int origin

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

Definition at line 312 of file core/types_c.h.

struct _IplROI* roi

Image ROI.

If NULL, the whole image is selected.

Definition at line 318 of file core/types_c.h.

struct _IplTileInfo* tileInfo

" "

Definition at line 321 of file core/types_c.h.

int width

Image width in pixels.

Definition at line 316 of file core/types_c.h.

int widthStep

Size of aligned image row in bytes.

Definition at line 326 of file core/types_c.h.