I read an image with ndimage, which results in a binary image like this:
ndimage
I would like to invert the image such that white turns into black, and vice versa.
Help is appreciated.
numpy.invert(close_img)
I use invert array. It works for me.