Cirrus Logic CS485 Dokumentacja Strona 74

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 319
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 73
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.
Przeglądanie stron 73
1 2 ... 69 70 71 72 73 74 75 76 77 78 79 ... 318 319

Komentarze do niniejszej Instrukcji

Brak uwag