Im using scipy to read a image and extract the RGB array like this
img_b = misc.imread('google.png')
img_b_blue = img_b[:, :, 0]
img_b_blue = img_b_blue.ravel()
Now I need to convert the img_b_blue array to binary and get the most significant bit.
I can convert using map:
img_b_blue_bin = map(bin, img_b_blue)
But it comes as string in the format '0b11110001'. Theres a way to using map and convert to binary without the 'b'? And how can I get the most significant bit?