function matrix = buildImage(r,g,b) matrix(:,:,1)=r; matrix(:,:,2)=g; matrix(:,:,3)=b;