function num = CountBlackImg(Img)
% returns the total number of black pixels on the image
    num=sum(sum(Img==1));
end