Skip to content
H Gazula edited this page Apr 29, 2023 · 9 revisions

Github Project link

Path on calico: /space/calico/1/users/Harsha/photo-calibration-gui

This project contains code to support 4 GUIs/freesurfer commands.

  1. fiducials_calibration
  2. fiducials_correction
  3. retrospective_correction
  4. connected_components

NOTE 01: For more information on how to use these GUIs, please refer to freesurfer wiki

NOTE 02 (important): Before running this project, please add the project directory to the PYTHONPATH environment variable as follows:

export PYTHONPATH=/path/to/project/directory

Python Environment:

  • Option 1. Build your own using the requirements file.
  • Option 2. Source my environment- source /space/calico_001/users/Harsha/venvs/gui-venv/bin/activate
  • Option 3: Source freesurfer source /usr/local/freesurfer/nmr-dev-env-bash

NOTE: If you source freesurfer, use fspython instead of python wherever appropriate.

Project Structure:

image

Directory Structure:

image

  • Makefile - Contains recipes to run various GUIs
  • misc - Contains miscellaneous scripts written for the project
  • 'old_gui' - This directory contains Python scripts for the old GUIs (that can be safely ignored) and a segmentation script for binary masking.
  • README.md
  • requirements.txt - Project requirements
  • resources - This directory contains the horizontal and vertical ruler
  • scripts - This directory contains func_{fs_command}.py files that drive each of the aforementioned Freesurfer commands.

If you want to run each of these functions, you can either:

  1. Run them in debug mode (in an IDE), or
  2. You can invoke the corresponding target in the Makefile. For example: run make fiducials_calibration from the command line.
Clone this wiki locally