Skip to content

Commit

Permalink
Merge pull request #650 from mgxd/enh/report-plot-axis
Browse files Browse the repository at this point in the history
ENH: Allow plotting of image rotated to cardinal axes
  • Loading branch information
mgxd authored and oesteban committed Sep 1, 2021
1 parent 3d3d829 commit db1a5f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions niworkflows/interfaces/reportlets/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,9 @@ class _SimpleBeforeAfterInputSpecRPT(nrb._SVGReportCapableInputSpec):
wm_seg = File(desc="reference white matter segmentation mask")
before_label = traits.Str("before", usedefault=True)
after_label = traits.Str("after", usedefault=True)
dismiss_affine = traits.Bool(
False, usedefault=True, desc="rotate image(s) to cardinal axes"
)


class SimpleBeforeAfterRPT(nrb.RegistrationRC, nrb.ReportingInterface):
Expand All @@ -363,6 +366,7 @@ def _post_run_hook(self, runtime):
self._fixed_image = self.inputs.after
self._moving_image = self.inputs.before
self._contour = self.inputs.wm_seg if isdefined(self.inputs.wm_seg) else None
self._dismiss_affine = self.inputs.dismiss_affine
NIWORKFLOWS_LOG.info(
"Report - setting before (%s) and after (%s) images",
self._fixed_image,
Expand Down

0 comments on commit db1a5f8

Please sign in to comment.