Image Processing: Problems: Exercise 2.2 A Camera With A Focal Length of F 50 MM Is Used To Take A Photo of A Vertical
Image Processing: Problems: Exercise 2.2 A Camera With A Focal Length of F 50 MM Is Used To Take A Photo of A Vertical
IMAGE PROCESSING
PROBLEMS:
Exercise 2.2 A camera with a focal length of f = 50 mm is used to take a photo of a vertical
column that is 12 m high and is 95 m away from the camera. Determine its height in the image
in mm (a) and the number of pixels (b) assuming the camera has a resolution of 4000 dots per
inch (dpi).
Answer:
Let,
height of image = h
Exercise 2.5 Determine the number of bytes necessary to store an uncompressed binary image
of size 4000 × 3000 pixels.
Answer:
Number of bytes = 4000 * 3000 / 8 = 1,500,000 bytes
Exercise 2.6 Determine the number of bytes necessary to store an uncompressed RGB color
image of size 640 × 480 pixels using 8, 10, 12 and 14 bits, respectively, per color channel.
Answer:
Number of bytes necessary to store an uncompressed RGB color image of size 640 × 480 pixels
using:
Exercise 2.7 Assume that a black and white television has a resolution of 160 × 100 4-bit pixels
and a frame rate of 25 images per second. How many different images can this device
ultimately display, and how long would a person have to watch it (assuming no sleeping) in
order to see every possible image at least once?
Answer:
Total time to view all images = total number of images / frame rate
Total time to view all images = 2 64000 / 25 seconds
Assignment- 1 3
Programs
Programming 1 Write a program that reads the image “rose.raw” (256 x 256), available on
the course homepage, and create three smaller-sized versions of the image, specifically 128 ×
128, 64 × 64 and 32 × 32, respectively. What are the effects of reducing the size of an image?
Solution:
Source code: program1.c
64 * 64 32 * 32
Assignment- 1 4
Programming 2 Write a program that reads the image “rose.raw” (256 x 256), and create three
different quantized versions of the image. In the first, the 2 lowest order bits are set to 0. In the
second, the 3 lowest order bits are set to 0. In the third, the 4 lowest order bits are set to 0. What
are the effects of reducing the number of bits of each pixel?
Solution:
Source code: program2.c
Effects of reducing the number of bits of each pixel is that certain grey values are set to zero
which means if we observe the image then not all grey values are present.