Skip to content

Project: Biological motion for visual cortex induced phosphenes

License

Notifications You must be signed in to change notification settings

lelynn/BiologicalMotionExperiment

Repository files navigation

BiologicalMotionExperiment

Project: Biological motion for visual cortex induced phosphenes

Generating stimuli

The map Figure_Generation_MATLAB contains the codes DotFigureGenerator.m and StickfigureGenerator.m for the generation of videos of containing biological motion walker with various frame duration and a certain limited lifetime. This code requires you to download Psychtoolbox and Biomotion toolbox. Also the positions of the walkers can be changed by adjusting the coordinates (explained oin the file).

Running the experiment

I've included the stimuli in the experiment map, so generation of stimuli is not necessary

For running the experiment for subjects, use the code in src:
Lynn_BiMoExp_fun is a file that can be used in two ways:

  1. Run the file to start the experiment
  2. Import the file into another python code to use the class methods
    (from Lynn_BiMoExp_fun import Running_experiment). An example run code is included in the src map, to show how you can import and use the file.

When running the file, you must have the maps in the same directory:

  • introduction: contains all the images with text that are shown during the experiment.

  • experiment: The four experiments, Dotfigure_LLQ, Dotfigure_center, Phosphenefigure_LLQ, Phosphenefigure_center.

  • experiment data: the csv data file that is outputted from the experiment is automatically saved in this map.


It is important that the maps are organized in this way, for the code to work.
OpenCV needs to be downloaded to run the program ( `pip install cv2` ).

About

Project: Biological motion for visual cortex induced phosphenes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published