Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 1.78 KB

File metadata and controls

33 lines (26 loc) · 1.78 KB

Eye Motion Repair.

Code that removes residual distortions due to eye motion from images and videos processed by Demotion.

  • This version of the code runs on python 3 and can use updated matlab versions.
  • This script can handle multiple FOVs at a time and the results have a transparent fill.
  • Trim_Warped_Edges has been integrated into this script, so that the images are compatible with ImageJ.
    • There is no need to run Trim_Warped_Edges after this script anymore.

To set up python 3 to connect to matlab

  • Determine the python version needed for the matlab version
  • Installing python:
    • Select custom installation
    • Optional Features: Check all boxes except py launcher
    • Advanced Options: Check Install Python for all users, Create shortcuts for installed applications, precompile standard library
      • Install location must be: C:\Python3##
  • Install Pycharm community edition if not allready installed
  • Lauch Pycharm and open script
  • Create new interpreter
    • existing interpreter, select python.exe in the folder location that was just installed
    • Install numpy for the interpreter
    • You may also need to install matlabengine (the version number should correspond with the matlab version number you have).
  • On initial script run through, script will prompt you to select the python folder within the matlab installation folder.
    • It will then perform the linking commands between matlab and python and will end the script
  • The script should then work as expected.