Uploaded by Naveed Khan

DIP NAVEED KHAN

advertisement
M.NAVEED KHAN
45697
DEPARTMENT OF COMPUTER ENGINEERING
N A M E : M . N AV E E D K H A N
CMS : 4 5 6 9 7
DR. JAMEEL MALGHANI
B AL O CH I ST AN
UNI VE RSI T Y
E NG I NE E RI NG
&
O F
I NF O RMAT I O N
MANAG E ME NT
T E CHNO L O G Y,
SCI E NCE
M.NAVEED KHAN
45697
DIP ASSIGNMENT NO 1
1)Read and show the image:
I=imread('E:\SNAPCHAT\Ahme.jpg');
imshow (I)
That is the dimension of an Image
B AL O CH I ST AN
UNI VE RSI T Y
E NG I NE E RI NG
&
O F
I NF O RMAT I O N
MANAG E ME NT
T E CHNO L O G Y,
SCI E NCE
M.NAVEED KHAN
45697
2) convert the image in gray scale:
B AL O CH I ST AN
UNI VE RSI T Y
E NG I NE E RI NG
&
O F
I NF O RMAT I O N
MANAG E ME NT
T E CHNO L O G Y,
SCI E NCE
M.NAVEED KHAN
45697
IG=rgb2gray (I);
imshow (IG)
3) Intensity value of image:
B AL O CH I ST AN
UNI VE RSI T Y
E NG I NE E RI NG
&
O F
I NF O RMAT I O N
MANAG E ME NT
T E CHNO L O G Y,
SCI E NCE
M.NAVEED KHAN
45697
IG1=IG+40;
IG2-IG-40;
IG3=IG*1.5;
IG4=IG/2;
imshow ([IG IG IG2 IG IG4])
B AL O CH I ST AN
UNI VE RSI T Y
E NG I NE E RI NG
&
O F
I NF O RMAT I O N
MANAG E ME NT
T E CHNO L O G Y,
SCI E NCE
M.NAVEED KHAN
45697
4) Image histogram graphical representation of picture:
imhist (IG);
imhist (IG1);
B AL O CH I ST AN
UNI VE RSI T Y
E NG I NE E RI NG
&
O F
I NF O RMAT I O N
MANAG E ME NT
T E CHNO L O G Y,
SCI E NCE
M.NAVEED KHAN
45697
mhist (IG2);
imhist (IG3);
B AL O CH I ST AN
UNI VE RSI T Y
E NG I NE E RI NG
&
O F
I NF O RMAT I O N
MANAG E ME NT
T E CHNO L O G Y,
SCI E NCE
M.NAVEED KHAN
45697
imhist (IG4);
B AL O CH I ST AN
UNI VE RSI T Y
E NG I NE E RI NG
&
O F
I NF O RMAT I O N
MANAG E ME NT
T E CHNO L O G Y,
SCI E NCE
Related documents
Download