pymialsrtk.workflows.postproc_stage module
Module for the postprocessing stage of the super-resolution reconstruction pipeline.
- pymialsrtk.workflows.postproc_stage.convert_ga(ga)[source]
Convert the gestational age to integers between 21 and 38.
This is in order to be able to load the corresponding template using the spatio-temporal atlas of Gholipour et al.
- pymialsrtk.workflows.postproc_stage.create_postproc_stage(p_ga, p_do_anat_orientation=False, p_do_reconstruct_labels=False, p_verbose=False, name='postproc_stage')[source]
Create a SR preprocessing workflow.
- Parameters
name (string) – Name of workflow (default: “preproc_stage”)
p_ga (integer) – Subject’s gestational age in weeks
p_do_anat_orientation (boolean) – Whether the alignement to template should be performed
p_do_reconstruct_labels (boolean) – Whether the reconstruction of LR labelmaps should be performed
p_verbose (boolean) – Whether verbosity is enabled
- Inputs
input_sdi (pathlike object or string representing a file) – Input SDI image
input_image (pathlike object or string representing a file) – Input T2w image
input_mask (pathlike object or string representing a file) – Input mask image
input_labelmap (pathlike object or string representing a file) – Input labelmap image (optional)
- Outputs
output_image (pathlike object or string representing a file) – Postprocessed image
output_mask (pathlike object or string representing a file) – Postprocessed mask
output_labelmap (pathlike object or string representing a file) – Postprocessed labelmap