Quantcast
Channel: PIL image to numpy - Stack Overflow
Browsing all 2 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Answer by Rotem for PIL image to numpy

The so called "original image" has false colors of "viridis" colormap.Viridis colormap is the default color map of matplotlib.Using image = Image.fromarray(input_image,'RGB') is not going to convert...

View Article



Image may be NSFW.
Clik here to view.

PIL image to numpy

I have a NumPy image (2 dimensional) where each pixel range is in thousands. I want to convert it to an RGB image (3-dimensional), with a range from 0 to 255. so I did the following:from PIL import...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images