entropy test for grey scale images