Cirrus Logic CS485 Spezifikationen Seite 271

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 319
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 270
User Defined Functions
13-5
13
If saturation of the computed result is necessary, it must be provided within
the user function.
The user function of type IplUserFuncPixel may call IPL_ERROR to set
the IPL error status.
See
iplUserProcessPixel() for more information.
UserProcess
Calls user-defined function
to separately process each
channel value of pixels in an
image with integer data.
void iplUserProcess( IplImage*
srcImage
, IplImage*
dstImage
, IplUserFunc
cbFunc
);
srcImage
Thesourceimage.
dstImage
The destination image.
cbFunc
The pointer to the user-defined function (of
IplUserFunc type).
Discussion
The function iplUserProcess() scans pixels of a source image
srcImage
, retrieves respective channel values, and passes them to the user-
defined function
cbFunc
for processing.
The source image must contain integer data of 8-, 16-, or 32-bit depth.
Before passing channel values to
cbFunc
, the function
iplUserProcess() converts them to int type.
After processing by
cbFunc
, the returned values are saturated to the
destination data range, and written to the respective channel of the
destination image
dstImage
. The saturation is done only for 8- or 16-bit
Seitenansicht 270
1 2 ... 266 267 268 269 270 271 272 273 274 275 276 ... 318 319

Kommentare zu diesen Handbüchern

Keine Kommentare