Once I get the pydicom module to work, how to I get the pixel information into a psychopy.visual function? psychopy.visual.ImageStim assumes you are reading a file, but I’m going to read in the dicom image via dicom.read_file, then extract the pixel_array. Which psychopy.visual function takes pixel arrays?
You can pass numpy arrays to ImageStim using the ‘image’ argument. It’s knows what to do based on the data type it receives.