Showing posts with label PIL. Show all posts
Showing posts with label PIL. Show all posts

Generate average image using Python and PIL (Python Image Library)


Generate average image using Python and PIL (Python Image Library)

This page shows how to generate an average image of the image arrays using python and PIL (python image library) module.
It is easy to do by converting the image to the numpy.array.


Arrange multiple images in one large image using Python PIL.Image


The results are:

Arrange multiple images in one large image using Python PIL.Image -1-

and

Arrange multiple images in one large image using Python PIL.Image -2-

This page shows how to arrange the images in one figure using Python & PIL.Image.

Plot on an image using Python Matplotlib.pyplot


The result is:

Plot on an image using Python Matplotlib.pyplot

This page shows how to plot data on an image.
plt.plot and plt.scatter is used in this page as an example.
You can plot by mapping function that convert the point of the plotting data to that of the image.

Write text annotation on image using Python Matplotlib.pyplot


The result is:

Write text annotation on image using Python Matplotlib.pyplot result

This page shows how to write texts and put plots on the image using Python and Matplotlib.pyplot. The Figures can be exported as vector image such as pdf and svg using plt.savefig. It is impossible if you use save function of PIL; Python Image Library.