Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Digital Image Processing- Lab Manual, Lab Reports of Digital Image Processing

Digital Image Processing - Lab Manual - Lab Programmes

Typology: Lab Reports

2019/2020
On special offer
30 Points
Discount

Limited-time offer


Uploaded on 07/21/2020

preethi-thamilanban
preethi-thamilanban 🇮🇳

4.6

(5)

3 documents

1 / 30

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1
PROVIDENCE COLLEGE FOR WOMEN
(Affiliated to Bharathiar University)
Spring Field,Coonoor-643104
DEPARTMENT OF COMPUTER SCIENCE
DIGITAL IMAGE PROCESSING USING
MATLAB
PRACTICAL RECORD
2017-2018
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
Discount

On special offer

Partial preview of the text

Download Digital Image Processing- Lab Manual and more Lab Reports Digital Image Processing in PDF only on Docsity!

PROVIDENCE COLLEGE FOR WOMEN

(Affiliated to Bharathiar University)

Spring Field,Coonoor-

DEPARTMENT OF COMPUTER SCIENCE

DIGITAL IMAGE PROCESSING USING

MATLAB

PRACTICAL RECORD

PROVIDENCE COLLEGE FOR WOMEN

Spring Field, Coonoor.

Certified to be bonafide record of work done by

____________________________ Reg.No. ________________ on

DIGITAL IMAGE PROCESSING USING MATLAB in partial

fulfillment of the requirement for the degree of MASTER OF

COMPUTER SCIENCE during the year 2017-2018.

STAFF INCHARGE HEAD OF THE DEPARTMENT

INTERNAL EXAMINER EXTERNAL EXAMINER

EX.NO:01 IMAGE ENHANCEMENT

DATE:

AIM:

To implement an image enhancement program using matlab.

ALGORITHM:

STEP1: Start -> My computer->Program files-> MATLAB->bin-> MATLAB.

STEP2: Open MATLAB and select new script. STEP3: Write the source code. STEP4: Copy the path of the image and paste it in the required line. STEP5: Save and run the program. STEP6: The image will be enhanced and displayed in different window. STEP7: Stop the process

CODING:

I=imread('C:\Documents and Settings\Administrator.PCW11\Desktop\Winter.jpg'); j=imresize(I,0.3); figure imshow(I); title('original image') figure imshow(j); title('resized image')

EX.NO:

DATE: HISTOGRAM EQUALIZATION

AIM:

To implement histogram equalization program using matlab.

ALGORITHM:

STEP1: Start -> My computer->Program files-> MATLAB->bin-

MATLAB. STEP2: Open MATLAB and select new script.

STEP3: Write the source code. STEP4: Copy the path of the image and paste it in the required line. STEP5: Save and run the program. STEP6: The image will produce the intensity range and displayed in different Window. STEP7: Stop the process.

CODING:

A=imread('C:\Documents and Settings\Administrator.PCW11\Desktop\Winter.jpg'); A_gray=rgb2gray(A); imhist(A_gray); imhist(A_gray,128); imhist(A_gray,32); R=A(:,1,1); G=A(:,1,2); B=A(:,1,3); subplot(1,3,1),imhist(R),title(R); subplot(1,3,2),imhist(G),title(G); subplot(1,3,3),imhist(B),title(B);

EX.NO:

DATE: IMAGE RESTORATION

AIM:

To implement an image restoration program using matlab. ALGORITHM: STEP1: Start -> My computer->Program files-> MATLAB->bin-> MATLAB. STEP2: Open MATLAB and select new script. STEP3: Write the source code. STEP4: Copy the path of the image and paste it in the required line. STEP5: Save and run the program. STEP6: The image will be restored and displayed in different window. STEP7: Stop the process

CODING:

I=im2double(imread('C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\images.jpg')); LEN=60; THETA=0; noise_var=0.001; est_nsr=noise_var/var(I(:)); PSF=fspecial('motion',LEN,THETA); wnr=deconvwnr(I,PSF,est_nsr); imshow(wnr);

EX.NO:

DATE: IMAGE FILTERING

AIM:

To implement an image filtering program using matlab. ALGORITHM: STEP1: Start -> My computer->Program files-> MATLAB->bin-> MATLAB. STEP2: Open MATLAB and select new script. STEP3: Write the source code. STEP4: Copy the path of the image and paste it in the required line. STEP5: Save and run the program. STEP6: The original image will be filtered and displayed in different window. STEP7: Stop the process.

CODING:

I=imread('C:\Documents and Settings\Administrator.PCW11\Desktop\Winter.jpg'); h=ones(5,5)/25; I2=imfilter(I,h); imshow(I); title('original image'); figure imshow(I2); title('filtered image')

EX.NO:

DATE: EDGE DETECTION USING OPERATORS

AIM:

To implement edge detection using operators- program using matlab.

ALGORITHM:

STEP1: Start -> My computer->Program files-> MATLAB->bin-> MATLAB. STEP2: Open MATLAB and select new script. STEP3: Write the source code. STEP4: Copy the path of the image and paste it in the required line. STEP5: Save and run the program. STEP6: The image will be detected and displayed in three different formats. STEP7: Stop the process.

CODING:

i=imread('C:\Documents and Settings\Administrator.PCW11\Desktop\Winter.jpg'); I=rgb2gray(i); Bw1=edge(I,'prewitt'); Bw2=edge(I,'sobel'); Bw3=edge(I,'roberts'); subplot(2,2,1); imshow(I); title('original image'); subplot(2,2,2); imshow(Bw1); title('prewitt'); subplot(2,2,3); imshow(Bw2); title('sobel'); subplot(2,2,4); imshow(Bw3); title('roberts');

EX.NO:

DATE: IMAGE COMPRESSION

AIM:

To implement an image compression program using matlab.

ALGORITHM:

STEP1: Start -> My computer->Program files-> MATLAB->bin-> MATLAB.

STEP2: Open MATLAB and select new script. STEP3: Write the source code. STEP4: Copy the path of the image and paste it in the required line. STEP5: Save and run the program. STEP6: The image will be compressed and displayed in different window. STEP7: Stop the process.

CODING:

clear all; close all; input_image1=imread('C:\pictures\CARU9KLZ.jpg'); input_image=imnoise(input_image1,'speckle',.01); figure; imshow(input_image); n=input('enter the decomposition level='); [Lo_D,Hi_D,Lo_R,Hi_R] = wfilters('haar'); [c,s] = wavedec2(input_image,n,Lo_D,Hi_D); disp('the decomposition vector output is'); disp(c); [thr,nkeep] = wdcbm2(c,s,1.5,3*prod(s(1,:))); [Compressed_image,TREE,Comp_ratio,PERFL2] = wpdencmp(thr,'s',n,'haar','threshold',5,1); disp('Compression ratio in %'); disp(Comp_ratio); re_ima1 = waverec2(c,s,'haar'); re_ima = uint8(re_ima1); subplot(1,3,1); imshow(input_image); title('I/P image'); subplot(1,3,2); imshow(Compressed_image); title('Compressed_image'); subplot(1,3,3); imshow(re_ima); title('reconstructed image');