Digital Image Processing

Lab 2

Exercise 1

Histogram Equalization

(a) Write a computer program for computing the histogram of an image.

(b) Implement the histogram equalization technique discussed in Section 3.3.1.

(c) Download Fig. 3.8(a) and perform histogram equalization on it.

Fig3.08(a).bmp

histo.c

 

Exercise 2

Arithmetic Operations

Write a computer program capable of performing the four arithmetic operations between two images. This project is generic, in the sense that it will be used in other projects to follow. (See comments on pages 112 and 116 regarding scaling).

Fig3.08(a).bmp

new2.bmp

arithmetic.c