Write a MATLAB program for contrast manipulation

 

Code:


clc;
clear;
a=imread('d:/matimage/baby.jpg');
b=a*0.4;
c=a*2;
subplot(1,3,1),imshow(a),title('Original Image');
subplot(1,3,2),imshow(b),title('Decrease in Contrast');
subplot(1,3,3),imshow(c),title('Increase in Contrast');


Output:




2 comments:

Powered by Blogger.