Lecture 7
Lecture 7
• Arithmetic operations.
• Logic operations.
Subtraction of two images is often used to detect motion ,consider the case where
nothing has changed in a sense ;the image resulting from subtraction of two
sequential image is filled with zero-a black image .If something has moved in the
scene, subtraction produces a nonzero result at the location of movement.
Applications include Object tracking ,Medical imaging ,Law enforcement and
Military applications
IMAGE ADDITION
1|Marwa R.
A .Original scene B .Same scene later
IMAGE SUBTRACTION
Multiplication and Division are used to adjust the brightness of an image .One
image typically consists of a constant number greater than one .Multiplication of
the pixel values by a number greater than one will darken the image (Brightness
adjustment is often used as a processing step in image enhancement)
2|Marwa R.
A.Original image B.Image divided by value1> C. Image divided by value1<
IMAGE DIVISION
3|Marwa R.
Logical AND& OR operations are useful for the masking and compositing of
images .For example ,if we compute the AND of a binary image with some other
image, then pixels for which the corresponding value in the binary image is 1 will
be preserved ,but pixels for which the corresponding binary value is 0 will be set
to0 (erased).Thus the binary image acts as a“ mask ”that removes information
from certain parts of the image.
On the other hand ,if we compute the OR of a binary image with some other
image, the pixels for which the corresponding value in the binary image is 0 will
be preserved ,but pixels for which the corresponding binary value is ,1 will be set
to(1 cleared.) So ,masking is a simple method to extract a region of interest) ROI) from
an image
IMAGE MASKING.
4|Marwa R.
In addition to masking, logical operation can be used in feature detection. Logical
operation can be used to compare between two images ,as shown below:
AND^
This operation can be used to find the similarity white regions of two different
images (it required two images)
Exclusive OR
This operator can be used to find the differences between white regions of two
different images(it requires two images).
NOT
NOT operation can be performed on grey-level images, it’s applied on only one
image, and the result of this operation is the negative of the original image.
5|Marwa R.
OR
NOT-AND
6|Marwa R.