Table Of Contents

Previous topic

psychopy.tools.filetools

Next topic

psychopy.tools.monitorunittools

This Page

Quick links

psychopy.tools.imagetools

Functions and classes related to image handling

array2image(a) Takes an array and returns an image object (PIL)
image2array(im) Takes an image object (PIL) and returns a numpy array
makeImageAuto(inarray) Combines float_uint8 and image2array operations ie.

Function details

psychopy.tools.imagetools.array2image(a)

Takes an array and returns an image object (PIL)

psychopy.tools.imagetools.image2array(im)

Takes an image object (PIL) and returns a numpy array

psychopy.tools.imagetools.makeImageAuto(inarray)

Combines float_uint8 and image2array operations ie. scales a numeric array from -1:1 to 0:255 and converts to PIL image format