0% found this document useful (0 votes)
12 views5 pages

Exp 1

The lab report details an experiment on basic digital image processing operations using MATLAB. It covers various techniques such as converting images to grayscale, resizing, concatenating, and manipulating color channels. The conclusion highlights the successful simulation of these operations, demonstrating the advantages of digital image processing over analog methods.

Uploaded by

Ruhina Tabasshum
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views5 pages

Exp 1

The lab report details an experiment on basic digital image processing operations using MATLAB. It covers various techniques such as converting images to grayscale, resizing, concatenating, and manipulating color channels. The conclusion highlights the successful simulation of these operations, demonstrating the advantages of digital image processing over analog methods.

Uploaded by

Ruhina Tabasshum
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Lab Report-01

Experiment Title: Study of basic digital image processing


operation

Course no. ECE 4223


Course Title: Digital Image Processing Sessional

Submitted by:
Name: Ruhina Tabasshum Prome
Roll: 1810005
Department: Electrical and Computer Engineering

Submitted to:
Oishi Jyoti
Lecturer
Department of ECE
RUET

Date of Submission: 16/10/2023


Experiment No. 01
Experiment Name: Study of basic digital image processing operation

Theory: Digital image processing is the use of a digital computer to process digital images
through an algorithm. As a subcategory or field of digital signal processing, digital image
processing has many advantages over analog image processing. It allows a much wider range of
algorithms to be applied to the input data and can avoid problems such as the build-up of noise
and distortion during processing. Since images are defined over two dimensions (perhaps more)
digital image processing may be modeled in the form of multidimensional systems.

Required Software: MATLAB

Code:
clc;
clear all;
close all;
%read any image
a=imread('lena.png');
subplot(3,4,1);
imshow(a)

%gray
b=rgb2gray(a);
subplot(3,4,2);
imshow(b);

%bw
c=im2bw(a);
subplot(3,4,3);
imshow(c);

%resize of any image


d=imresize(a,[50,50]);
subplot(3,4,4);
imshow(d);

%image size
size(a);

%information about image


imageinfo('lena.png')

%concatenate
e=imread('fg.jpg');
subplot(3,4,5);
imshow(e);

f=imresize(e,[50,50]);
subplot(3,4,6);
imshow(f);

n=vertcat(d,f);
subplot(3,4,7);
imshow(n);

s=horzcat(d,f);
subplot(3,4,8);
imshow(s);

%even pixel removing

[i j k] = size(a);
m =1;
for j=1:2:512
b1(:,m,:) = a(:,j,:);
m=m+1;
end
size(b1)
subplot(3,4,9);
imshow(b1);

a = imread('lena.png');
%red channel
a(:,:,2)=0;
a(:,:,3)=0;
subplot(3,4,10)
imshow(a)

a = imread('lena.png');
%green channel
a(:,:,1)=0;
a(:,:,3)=0;
subplot(3,4,11)
imshow(a)

a = imread('lena.png');
%blue channel
a(:,:,1)=0;
a(:,:,2)=0;
subplot(3,4,12)
imshow(a)
Output:

Figure-1: Output after different types of operations on an image

Figure-2: Output showing the image information

Conclusion: Basic digital image processing operations like reading an image, converting it into
gray, black and white from RGB, showing size, resizing an image, viewing information,
concatenating two images vertically & horizontally, showing odd pixels only, showing green ,red
& blue channel etc. has been studied and simulated.

You might also like