Search code examples
pythonimageimage-processingscipyscikit-image

How to invert black and white with scikit-image?


I read an image with ndimage, which results in a binary image like this:

enter image description here

I would like to invert the image such that white turns into black, and vice versa.

Help is appreciated.


Solution

  • numpy.invert(close_img)
    

    I use invert array. It works for me.