- using the terminal, navigate to the location where you want to have the code and
do git clone https://github.com/javijv4/fibrotug-improc.git. This will create a subfolderfibrotug-improc/ - Open VScode, go to File → Open… → and select the
fibrotug-improc/folder. - Do
cmd+shift+Pand type Python. Select Python: Create Environment…. Select Venv. It might ask you for the Python interpreter, select any that is > 3.9. - Do
cmd+shift+Pand type terminal. Select Terminal: Create New Terminal. - Check that the Python interpreter is correct by typing
which python. It should show youpath_to_fibrotug-improc/.venv/bin/python - In the terminal, run
python -m pip install -e ..This will install all the codes and required packages. - That’s it. It should be ready to run. You can test that everything works running the
register_pre_to_post.pyfile that, as default, points to a test case that is downloaded when you clone the repository (test_data/folder)
WAIT! Before start, check that the post and pre files are in the same orientation (they can be flipped in 180)
- Generate tissue masks:
generate_tissue_masks.py→fibrotug_mask_init.tifIt works for both fibers and actinin- pre images: use actinin
- post images: use fibers
- use itksnap to fixed up the mask.→
fibrotug_mask.tif
- Register pre-to-post:
register_pre_to_post.py→fibrotug_mask_init.tif- open
pre_mask.tifin itksnap and get rid of the posts →pre_tissue_mask.tif
- Process Actin Images
actin_processing.py→improc_”which”_actin.npzimproc_”which”_actin.npzcontains the image angles and smooth angles.
- Visualization can be done with
visualize_actin.py
- Process Fiber Images