function out = imgcomp(in1,in2)

rows=62;
columns=150;

in1=double(in1);
in2=double(in2);

in1=imresize(in1,[rows columns]);
in2=imresize(in2,[rows columns]);

answer=zeros(1,columns);
for i=1:columns
	foo1=dot(in1(:,i),in1(:,i));
	bar1=sqrt(foo1);
	foo2=dot(in2(:,i),in2(:,i));
	bar2=sqrt(foo2);
	
	answer(i)=dot(in1(:,i)/bar1,in2(:,i)/bar2);
end
out=mean(answer);
	