Specifications

Image Arithmetic and Logical
Operations
5-1
5
This chapter describes image processing functions that modify pixel values
using simple arithmetic or logical operations. It also includes the library
functions that perform image compositing based on opacity (alpha-
blending). All these operations can be broken into two categories: monadic
operations, which use single input images, and dyadic operations, which
use two input images. Table 5-1 lists the functions that perform arithmetic
and logical operations.
Table 5-1 Image Arithmetic and Logical Operations
Group Function Name Description
Arithmetic
operations
iplAddS
iplAddSFP
Adds a constant to the image pixel values.
iplSubtractS
iplSubtractSFP
Subtracts a constant from the pixel values
or the values from a constant.
iplMultiplyS
iplMultiplySFP
Multiplies pixel values by a constant.
iplMultiplySScale
Multiplies pixel values by a constant and
scales the product.
iplAbs
Computes absolute pixel values.
iplAdd
Adds pixel values of two images.
iplSubtract
Subtracts pixel values of one image from
those of another image.
iplSquare
Squares the pixel values of an image.
Continued