clear all
close all


colores = imread('shcolor.bmp');
blanconegro = imread('shbw.bmp');

figure(1)
image(colores)
figure(2)
image(blanconegro)

[r,c,i] = size (blanconegro);

bajo = 150;
ren = 1+bajo:r+bajo;
col = 1+bajo:c+bajo;
whos
C = colores;
C(ren,col,1) = (blanconegro(:,:,1) + colores(ren,col,1) )/2 ;
C(ren,col,2) = (blanconegro(:,:,2) + colores(ren,col,2) )/2;
C(ren,col,3) = (blanconegro(:,:,3) + colores(ren,col,3) )/2;
figure(3);
image(C);

