function out = imgcomp3d(in1,in2)

answer=zeros(1,3);
for i=1:3
	answer(i)=imgcomp(in1(:,:,i),in2(:,:,i));
end
out=mean(answer);