Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Faculty of Computer Science & IT

Assignment 3
Student Name Student ID Program Contact Number Email Address
Arslan Ahmed BSEM-F16- BS(SE) +92 3454175704 Bsem-F16-104@superior.edu.pk
104

SUPERIOR UNIVERSITY LAHORE


Assignment 3
Histogram Equalizing

Code#

global I
I = imread('cameraman.tif');
figure
subplot(1,2,1)
imshow(I)
subplot(1,2,2)
imhist(I,64)

Output#

Linear Transformation

Code#

clear; close all; clc;

I = imread('cameraman.tif');
figure;
imshow(I);
title('Step-1: Input Image');

I(I >= 80 & I <=100) = 220;


figure;
imshow(I);
title('Step-2: Output Image');

OutPut#

You might also like