ivadomed / canproco

Code for preprocessing the CanProCo brain and spinal cord dataset
MIT License
4 stars 1 forks source link

Write a script to fetch sequence parameters #8

Open valosekj opened 2 years ago

valosekj commented 2 years ago

Write a simple bash script (which can be run by sct_run_batch across all subjects) to fetch the resolution of all images. This will allow us to check if sequence parameters are the same across/within centres.

pixdim can be found, for example, by:

sct_image -i <filename> -header fslhd | grep pixdim1 | awk '{print $2}'

Alternatively, we can consider writing some more sophisticated script, like params_checker.py

jcohenadad commented 2 years ago

This is a great idea, but instead of developing a new script, I suggest re-using (or updating) what has already been developed for the spine-generic project. See notably:

valosekj commented 1 year ago

model_seg_sci/utils/fetch_sequence_parameters.py might be relevant