Specifications

Intel
®
Image Processing Library Reference Manual
4-20
4
Setting Regions of Interest
To set a region of interest, the function iplSetROI() uses a ROI structure
IplROI presented below. The IplROI member of the image header must
point to this
IplROI structure to be effective. This can be done by a simple
assignment. The application may choose to construct the ROI structure
explicitly without the use of the function.
IplROI Structure Definition
typedef struct _IplROI {
unsigned int coi;
int xOffset;
int yOffset;
int width;
int height;
} IplROI;
The members in the IplROI structure define:
coi
The channel of interest number. This parameter
indicates which channel in the original image will
be affected by processing taking place in the
region of interest;
coi
equal to 0 indicates that all
channels will be affected.
xOffset
and
yOffset
The offset from the origin of the rectangular ROI.
(See section “Image Regions” in Chapter 2 for
the description of image regions.)
width
and
height
The size of the rectangular ROI.