function blendImg = myBlend(leftImg, rightImg)
[rows, cols, colors] = size(leftImg);
blendImg = zeros(rows, cols, colors);

for col=1:cols
   alpha = (cols - col)/(cols-1);
   blendImg(:,col,:) = leftImg(:,col,:)*alpha + (1-alpha)*rightImg(:,col,:);
end
end