Red de conocimiento informático - Material del sitio web - ¿Cómo utilizar matlab para agregar dos imágenes RGB leídas?

¿Cómo utilizar matlab para agregar dos imágenes RGB leídas?

>>?a=imread('D:\ebook\lena.bmp');

>>?b=imread('D:\ebook\2009.bmp' );

>>?a1=a(:,:,1);

>;? >

>>?a3=a(:,:,3);

>>?b1=b(:,:,1);

>>?b2= b(:,:,2);

>>?b3=b(:,:,3);

>>?c(:,:,1)=imadd (a1,b1,'uint16');

c(:,:,2)=imadd(a2,b2,'uint16');

c(:,:, 3)=imadd(a3,b3,'uint16');

>>?