Skip to content

Commit

Permalink
Merge pull request #129 from ANTsX/DeepFlash2SmoothingBugFix
Browse files Browse the repository at this point in the history
BUG/DOC:  Remove double smoothing.
  • Loading branch information
ntustison authored Aug 23, 2024
2 parents 0c7b4ff + f498c37 commit 50b4c83
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions antspynet/utilities/deep_flash.py
Original file line number Diff line number Diff line change
Expand Up @@ -685,13 +685,13 @@ def deep_flash(t1,
priors_image_left_list = list()
for i in range(len(labels_left)):
prior_image = ants.threshold_image(prior_labels, labels_left[i], labels_left[i], 1, 0)
prior_image = ants.copy_image_info(t1_preprocessed, ants.smooth_image(prior_image, 1.0))
prior_image = ants.copy_image_info(t1_preprocessed, prior_image)
priors_image_left_list.append(ants.smooth_image(prior_image, 1.0))

priors_image_right_list = list()
for i in range(len(labels_right)):
prior_image = ants.threshold_image(prior_labels, labels_right[i], labels_right[i], 1, 0)
prior_image = ants.copy_image_info(t1_preprocessed, ants.smooth_image(prior_image, 1.0))
prior_image = ants.copy_image_info(t1_preprocessed, prior_image)
priors_image_right_list.append(ants.smooth_image(prior_image, 1.0))

probability_images_left = list()
Expand Down Expand Up @@ -831,7 +831,7 @@ def deep_flash(t1,

################################
#
# Left: do prediction of mtl, hippocampal, and ec regions and normalize to native space
# Left: do prediction of whole, hippocampal, and amygdala regions and normalize to native space
#
################################

Expand Down Expand Up @@ -935,7 +935,7 @@ def deep_flash(t1,

################################
#
# Right: do prediction of mtl, hippocampal, and ec regions and normalize to native space
# Right: do prediction of whole, hippocampal, and amygdala regions and normalize to native space
#
################################

Expand Down

0 comments on commit 50b4c83

Please sign in to comment.