Citra Brightness

Tampilan Figure dengan 4 subplot:
• Subplot 1: Citra Asli 
• Subplot 2: Representasi Yellow (Red+Blue) + Brightness 150 
• Subplot 3: Representasi Cyan (Red+Green) + Brightness 50 
• Subplot 4: Representasi Magenta ( Blue+Green) + Brightness -80
citra_asli=imread('water.jpg'); 
subplot(2,2,1); 
imshow(citra_asli),title('Citra Asli'); 
red(:,:,1)=[0]; 
green(:,:,2)=[0]; 
blue=citra_asli; 
yellow=double(1-blue);
yellow=citra_asli+150;
subplot(2,2,2); 
imshow(yellow),title('Representasi Yellow (R+B)+Brightness 150'); 
red=citra_asli; 
green(:,:,1)=[0]; 
blue(:,:,3)=[0]; 
cyan=double(1-red); 
cyan=citra_asli+50; 
subplot(2,2,3);
imshow(cyan),title('Representasi Cyan(R+G)+Brightness 50'); 
subplot(2,2,4);
red(:,:,1)=[0];
green=citra_asli; 
blue(:,:,1)=[0];
magenta=double(1-green);
magenta=citra_asli-80; 
imshow(magenta),title(' Representasi Magenta(B+G)+Brightness -80');

0 komentar :

Post a Comment