Description of the problem:
My experiment requires presenting different images in different trials. All the images were already saved in a folder under resources. This is a piece of code I wrote in python to read all the files in the folder.
from os import listdir imagePatchDestination='./topSe/' allImagePatches = [f for f in listdir(imagePatchDestination) if f.startswith('croppedImage_sceneNum_')] # set an image by default whichCroppedImageA=imagePatchDestination + allImagePatches whichCroppedImageB=imagePatchDestination + allImagePatches