from_file#

pymovements.stimulus.image.from_file(image_path: str | Path) ImageStimulus[source]#

Load image stimulus from file.

Parameters:

image_path (str | Path) – Path to file to be read.

Returns:

Returns the image stimulus file.

Return type:

ImageStimulus