Specifications

Image Arithmetic and Logical Operations
5-11
5
RShiftS
Divides pixel values by a
constant power of 2 by
shifting bits to the right.
void iplRShiftS(IplImage*
srcImage
, IplImage*
dstImage
,
unsigned int
nShift
);
srcImage
Thesourceimage.
dstImage
The resultant image.
nShift
The number of bits by which to shift each pixel value to
the right.
Discussion
The function iplRShiftS()decreases the intensity of the source image by
shifting the bits in each pixel value by
nShift
bits. The positions vacated
after shifting the bits are filled with zeros.