%Composite Picture****************************************

%Combine two pictures
%Arguments input image1,input image2, threshold

function[out]=ImageComp(img1,out,thresh)

img1=double(imread(img1));
out=double(imread(out));

[height,width]=size(img1);

for y=1:height
   for x=1:width
      if out(y,x)>thresh
         out(y,x)=img1(y,x)*30;       
      end
   end
end