Image processing

Uses
- Data files
- Functions

The images treated in this workflow are gray-scale images represented as two-dimensional arrays of integers. They have sort image in Leibniz code. In Python code, they are stored as two-dimensional numpy arrays. On disk, they are stored as FITS files containing a single image.

Visualization

Images are visualized for inspection via the matplotlib library, adding a numerical gray-scale to the image for inspection of the intensity values. The output is stored in a file in PNG format, described by sort pngFilefile. The workflow step for visualization is
showImage : image pngFile
and implemented in the following Python code:

image, filename = inputs

import matplotlib.pyplot as plt

plt.clf()
plt.imshow(image, cmap='gray', origin='lower')
plt.colorbar()
plt.savefig(filename)