Skip to content

Commit

Permalink
Inverse crop nifti and remove background nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
ravih18 committed Nov 13, 2024
1 parent f6676a9 commit 627717d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clinica/pipelines/pet/linear/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,24 +519,24 @@ def _build_core_nodes(self):
[
(
normalize_intensity_node,
crop_nifti_node,
remove_background_node,
[("output_image", "input_image")],
),
(
crop_nifti_node,
remove_background_node,
crop_nifti_node,
[("output_image", "input_image")],
),
(
remove_background_node,
crop_nifti_node,
self.output_node,
[
("output_image", "outfile_crop_no_bkgd")
], # to implement in out node
),
]
)
last_node = remove_background_node
last_node = crop_nifti_node
# Case 3: don't crop the image and remove the background
elif (self.parameters.get("uncropped_image")) and (
self.parameters.get("remove_background")
Expand Down

0 comments on commit 627717d

Please sign in to comment.