Specifications
Intel
®
Image Processing Library Reference Manual
5-4
5
SubtractS, SubtractSFP
Subtracts a constant from
pixel values, or pixel
values from a constant.
void iplSubtractS(IplImage*
srcImage
, IplImage*
dstImage
,
int
value
, BOOL
flip
);
void iplSubtractSFP(IplImage*
srcImage
,IplImage*
dstImage
,
float
value
, BOOL
flip
); /* IPL_DEPTH_32F only */
srcImage
Thesourceimage.
dstImage
The resultant image.
value
The value to be subtracted from the pixel values.
flip
A Boolean used to change the order of subtraction.
Discussion
The functions change the image intensity as follows:
If
flip
is false, the
value
is subtracted from the image pixel values.
If
flip
is true, the image pixel values are subtracted from the
value
.
MultiplyS, MultiplySFP
Multiplies pixel values
by a constant.
void iplMultiplyS (IplImage*
srcImage
, IplImage*
dstImage
,
int
value
);
void iplMultiplySFP(IplImage*
srcImage
,IplImage*
dstImage
,
float
value
); /* images with IPL_DEPTH_32F only */
srcImage
Thesourceimage.