From db1a5f8e0a24e8c56d69c0bdba43105af06c970c Mon Sep 17 00:00:00 2001 From: Mathias Goncalves Date: Wed, 1 Sep 2021 11:18:10 -0400 Subject: [PATCH] Merge pull request #650 from mgxd/enh/report-plot-axis ENH: Allow plotting of image rotated to cardinal axes --- niworkflows/interfaces/reportlets/registration.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/niworkflows/interfaces/reportlets/registration.py b/niworkflows/interfaces/reportlets/registration.py index 8ec9d737..65b1b0bc 100644 --- a/niworkflows/interfaces/reportlets/registration.py +++ b/niworkflows/interfaces/reportlets/registration.py @@ -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): @@ -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,