MI Lab 09

.docx

School

Old Dominion University *

*We aren’t endorsed by this school

Course

562

Subject

Electrical Engineering

Date

Apr 3, 2024

Type

docx

Pages

6

Uploaded by PrivateMusicEmu45

Name: Mudassir Ali Shah Roll no: 2018-BM-023 LAB No-09 TASK 1: Initiate the image processing in MATLAB with some basic commands. READ IMAGE: imread('filename.ext') A=imread('filename'FMT); the above equation reads image graphic file. DISPALY IMAGE: imshow(f,g) where f is image array and g is number of intesity level WRITING IMAGE: imwrite(f, filename,FMT) or imwrite('filename') ADJUST IMAGE : J= imadjust(I); it adjusts image intensity values or color map J= imadjsut (I,[low-in;high-in],[low-out;high-out]) It map values in intensity image value to new values in J such that values below low-in and high- in and above low-out and high-out are clipped.We can use an empty matrix ( [ ] ) for [low-in; high-in] or for [low-out; high-out] to specify the default of [0, 1] IMAGE HISTOGRAM : imhist(I, N) It displays histogram of image data where I is intensity image and N is the number of bins. If I is a grey-scale image, imhist uses 256 bins as a default values. if is a binary image, imhist uses only 2 bins.
Name: Mudassir Ali Shah Roll no: 2018-BM-023 IND2GRAY: It converts indexed image to intensity image or grey-scale image. I= ind2gray (x, map) It converts the image x with color map to any intensity image I. ind2gary removes the hue and saturation imformation while retaining the luminance. TASK 2: Design the low pass smoothing filter using image processing in MATLAB. SOURCE CODE:
Name: Mudassir Ali Shah Roll no: 2018-BM-023 clc I=imread( 'coins.png' ); H1=ones(5,5)/25; H2=ones(3,3)/9; I1=imfilter(I,H1); I2=imfilter(I,H2); imshow(I) title( 'original image of coins' ) figure; imshow(I1) title( 'filter image of coins#01' ); figure; imshow(I2) title( 'filter image of coins# 02' ) OUTPUT: TASK 3: Design the median smoothing low pass filter using image processing in MATLAB.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help