Python Image Libraries



Brief overview about some of the main python libraries which promote input and output of digital image files.

PIL


Reading and writing images using Python Image Library PIL.

Installation


Install by command line:

>>> conda install --channel anaconda pillow

or

>>> pip install Pillow

Input


PIL still doesn't support bit depth greater than 8.

Analysis


Output


Scipy


Reading and writing images using SciPy.

Installation


Install by command line:

>>> conda install scipy

ou

>>> pip install scipy

Input


sciPy still doesn't support bit depth greater than 8.

Analysis


Output


OpenCV


Reading and writing images using OpenCV.

Installation


Install by command line:

>>> conda install --channel menpo opencv

or

>>> pip install opencv-python

Input


openCV supports bit depth greater than 8. The result is in BGR mode and it's necessary invert channels to convert to RGB.

Analysis


Output


Images - 16 and 32 bits


ImageIO


Reading and writing images using ImageIO.

Installation


Install by command line:

>>> conda install -c anaconda imageio
>>> conda install -c dlr-sc freeimageplus

or

>>> pip install imageio
>>> pip install smc.freeimage

Input


Analysis


Output


Images 16 e 32 bits