Cirrus Logic CS485 Dokumentacja Strona 86

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 319
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 85
Intel
®
Image Processing Library Reference Manual
4-32
4
depth lower than the
fillVallue
,the
fillValue
is saturated when
assigned to pixel. If an ROI is specified, only that ROI is filled.
Example 4-4 Allocating an Image and Setting Its Pixel Values
int example44( void ) { IplImage *img;
__try {
img = iplCreateImageHeader( 1,0,IPL_DEPTH_8U,"GRAY",
"GRAY", IPL_DATA_ORDER_PIXEL, IPL_ORIGIN_TL,
IPL_ALIGN_QWORD, 100,150, NULL, NULL, NULL, NULL);
if( NULL == img ) return 0;
iplAllocateImage( img, 0, 0 );
if( NULL == img->imageData ) return 0;
iplSet( img, 255 );
}
__finally {
iplDeallocate(img, IPL_IMAGE_HEADER|IPL_IMAGE_DATA);
}
return IPL_StsOk == iplGetErrStatus();
}
Copy
Copies image data from one
image to another.
void iplCopy(IplImage*
srcImage
, IplImage*
dstImage
);
srcImage
Thesourceimage.
dstImage
The resultant image.
Discussion
The function iplCopy() copies image data from a source image to a
resultant image. Before calling this function, the source and resultant
Przeglądanie stron 85
1 2 ... 81 82 83 84 85 86 87 88 89 90 91 ... 318 319

Komentarze do niniejszej Instrukcji

Brak uwag