Specifications
Intel
®
Image Processing Library Reference Manual
4-22
4
Discussion
The function iplDeleteROI() deallocates a ROI structure previously
created by
iplCreateROI().
SetROI
Sets the region of
interest (ROI) structure.
void iplSetROI(IplROI*
roi
, int
coi
, int
xOffset
,
int
yOffset
, int
width
, int
height
);
roi
The pointer to the ROI structure to modify in the
original image.
coi
The channel of interest in the original image. It
can be set to 0 (for all channels) or to a specific
channel number.
xOffset, yOffset
The offset from the origin of the rectangular
region.
width, height
The size of the rectangular region.
Discussion
The function iplSetROI() sets the channel of interest and the rectangular
region of interest in the structure
roi
.
The argument
coi
defines the number of the channel of interest. The
arguments
xOffset
and
yOffset
define the offset from the origin of the
rectangular ROI. The members
height
and
width
define the size of the
rectangular ROI.