Digital Image Processing
Project chapter: Chapter 3 Project number:Proj03-01 ~ Proj03-06 Student's name: Student's number: Class:
1
Contents
IMAGE ENHANCEMENT USING INTENSITY TRANSFORMATIONS ................ 1 HISTOGRAM EQUALIZATION ................................................................................. 7 ARITHMETIC OPERATIONS ................................................................................... 10 SPATIAL FILTERING ................................................................................................. 14 ENHANCEMENT USING THE LAPLACIAN.......................................................... 17 UNSHARP MASKING ............................................................................................... 20
2
Image Enhancement Using Intensity Transformations
Exp. 5,PROJECT 03-01
Objective
To manipulate a technique of image enhancementbyintensitytransformation or gray level transformation.
Requirements
The focus of this project is to experiment with intensity transformations toenhance an image. Download Fig. 3.8(a) and enhance it using: (a) The log transformation of Eq. (3.2-2): s=clog(1+r);
(b) A power-law transformation of the form shown in Eq. (3.2-3): s=crγ.
Figure 1 Fig 3.05(a)
3
Figure 2Fig. 3.8(a)
Technical discussion
【1】I = mat2gray(A)
sets the values of amin and amax to the minimum and maximum values in A.
【2】I2 = im2uint8(I1)
converts the grayscale image I1 to uint8, rescaling the data if necessary.
Program listings
【1】log transformation
I=imread('Fig3.05(a).jpg'); subplot(121); imshow(I); title('original');
I1=im2uint8(mat2gray(log(1+double(I)))); subplot(122); imshow(I1);
title('log transformation');
4