pymovements.stimulus.ImageStimulus.from_file#

static ImageStimulus.from_file(path: str | Path) ImageStimulus[source]#

Load image stimulus from file.

Parameters:

path (str | Path) – Path to image file to be read.

Returns:

Returns an ImageStimulus initialized with the image stimulus file.

Return type:

ImageStimulus