Specifications
Image Arithmetic and Logical Operations
5-7
5
Dyadic Arithmetic Operations
The sections that follow describe the functions that perform dyadic
arithmetic operations. These functions use two input images to create an
output image.
Add
Combines corresponding
pixels of two images by
addition.
void iplAdd(IplImage*
srcImageA
, IplImage*
srcImageB
,
IplImage*
dstImage
);
srcImageA
The first source image.
srcImageB
The second source image.
dstImage
The resultant image obtained as
dst_pixel
=
srcA_pixel
+
srcB_pixel
.
Discussion
The function iplAdd() adds corresponding pixels of two input images to
produce the output image.