clear all

width=128;	%Image Width

img=ImgGenerator(width,50);		%Setup Image using Normal Random Dist
img2=ImgGenerator(width,100);
img3=ImgGenerator(width,8);


%Scaling*****
img=Scale(img,1e3);
img2=Scale(img2,1e3);
img3=Scale(img3,1e3);


%Divide horiz and vert
sample1(1:(width/4),1:width)=10;
sample1((width/4):width,1:(width/4))=1;
sample1((width/4):width,(width/4):width)=100;

sample1=img.*sample1;






%Divide diagonally and vert
sample2=ones(width,width);
%sample2(:,3*width/4:width)=5;

for n=1:1:(width/2)
   sample2(n,1:((width/2)-n))=10;
   sample2((width/2)+n,width-n:end)=10;
end   
sample2=img.*sample2;





%Divide with diff speckle size
sample3=img;
for n=1:1:(width/2)
   sample3(n,1:((width/2)-n))=img3(n,1:((width/2)-n));
   sample3((width/2)+n,width-n:end)=img2((width/2)+n,width-n:end);
end 





%Divide with diff speckle size and diff intensity
sample4=img*100;
for n=1:1:(width/2)
   sample4(n,1:((width/2)-n))=img3(n,1:((width/2)-n))*10;
   sample4((width/2)+n,width-n:end)=img2((width/2)+n,width-n:end)*50;
end


