I am trying to implemnt the binary threshold on my own using python, First I have converted the image to to gray scale image. Then I have taken the max value of the gay scal