title: How to convert array values 0 and 255 to corresponding 0 and 1 array
body: <p>I have an image represented as numpy array which has values of 0 and 255 (no other value within the range). What is the best way to convert it to 0 and 1 array.</p>