function num=CountBlackImg(Img)
    num=sum(sum(Img==1));
end