/FZ-Julich-Registration-Pipeline

PET images coregistration pipeline to MNI template

Primary LanguagePythonMIT LicenseMIT

FZJ PET Registration Pipeline

This project is a two steps registration pipeline that aims to register brain segmentation masks from the MNI template space to the patient PET(Positron Emission Tomography) image space. First, the MNI template is registered to the patient space. The transformation matrix that was used to register the template to the patient space is saved in an output folder. The transformation matrix is then applied to the brain segmentation masks. The process is repeted for every subject. All the files generated by the sccripts are saved in the ouput folder specified in the main function.

The registration process

Usage

Create and run a registration process that register a template(template_path) to a subject image(subject_image) and save the transformation matrix in a folder(subject_folder) for future use.

CoRegistrationProcessFactory.create_co_registration_process_with(template_path, subject_image, subject_folder).run()

Apply the transformation matrix to every mask and save the results in the subject folder.

 for mask in masks:
    # Register the mask to the subject space using the transformation matrix
    CoRegistrationProcessFactory.create_co_registration_process_with(mask, subject, subject_folder, transformation_matrix_path).run()

Contributing

How to contribute ?

  • Create a branch by feature and/or bug fix
  • Get the code
  • Commit and push
  • Create a pull request

Branch naming

Feature branch

feature/ [Short feature description] [Issue number]

Bug branch

fix/ [Short fix description] [Issue number]

Commits syntax:

Adding code:

+ Added [Short Description] [Issue Number]

Deleting code:

- Deleted [Short Description] [Issue Number]

Modifying code:

* Changed [Short Description] [Issue Number]

Merging code:

Y Merged [Short Description] [Issue Number]

Icons made by Freepik from www.flaticon.com is licensed by CC 3.0 BY