stimuli.Picture data sources
The documentation for the
stimuli.Picture class shows how to create a Picture stimulus from an image file given a file path, but is there any way to create a Picture stimulus from a python data structure, e.g., an
Image object as returned by the
Pillow library? I'm thinking about use cases where a user might want to read in an image file, and transform it in some way (convert to greyscale, resize) before presenting it.
Thanks for any guidance!