Professional Documents
Culture Documents
Pregunta N°1
%Conversión de COLOR a GRIS
M4 = imread('Lago.jpg');
R = M4( : , : , 1 );
G = M4( : , : , 2 );
B = M4( : , : , 3 );
M7 = round( (R + G + B ) / 3 );
colormap( gray( 256 ) )
subplot(121), image( M7 )
M8 = round( 0.299*R + 0.587*G + 0.114*B );
colormap( gray( 256 ) )
subplot(122), image( M8 )
subplot(121), image( M4 )
Diagrama de bloques