Cirrus Logic CS485 Dokumentacja Strona 272

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 319
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 271
Intel
®
Image Processing Library Reference Manual
13-6
13
data. To perform saturation of 32-bit integer data, use
iplUserProcessFP() function instead.
The function
iplUserProcess() supports tiled images and images with
rectangle ROI and mask ROI. The operations can be performed in-place.
The source and destination images must contain data of the same bit depth
and have the same number of processed channels.
Example 13-1 Image Channel Values Processing by User Defined Function
static int __STDCALL bw( int src ) {
if( src < 127 ) return 0;
return 255;
}
void UserFunc( void ) {
IplImage *imga = iplCreateImageJaehne( IPL_DEPTH_8U,
16,5);
IplImage *imgb = iplCloneImage( imga );
iplUserProcess( imga, imgb, bw );
iplDeallocate( imga, IPL_IMAGE_ALL );
iplDeallocate( imgb, IPL_IMAGE_ALL );
}
Przeglądanie stron 271
1 2 ... 267 268 269 270 271 272 273 274 275 276 277 ... 318 319

Komentarze do niniejszej Instrukcji

Brak uwag