Cirrus Logic CS485 Specifications Page 113

  • Download
  • Add to my manuals
  • Print
  • Page
    / 319
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 112
Image Arithmetic and Logical Operations
5-3
5
Monadic Arithmetic Operations
The sections that follow describe the library functions that perform
monadic arithmetic operations (note that the
iplPreMultiplyAlpha
function is described in the “Image Compositing Based on Opacity
section of this chapter). All these functions use a single input image to
create an output image.
AddS, AddSFP
Adds a constant to pixel
values of the source
image.
void iplAddS(IplImage*
srcImage
, IplImage*
dstImage
, int
value
);
void iplAddSFP(IplImage*
srcImage
, IplImage*
dstImage
,
float
value
); /* images with IPL_DEPTH_32F only */
srcImage
Thesourceimage.
dstImage
The resultant image.
value
The value to be added to the pixel values.
Discussion
The functions change the image intensity by adding the
value
to pixel
values. A positive
value
brightens the image (increases the intensity); a
negative
value
darkens the image (decreases the intensity).
Page view 112
1 2 ... 108 109 110 111 112 113 114 115 116 117 118 ... 318 319

Comments to this Manuals

No comments