From ba4ad94dc85aa52c5a9f2abe18b9bb789af45bf4 Mon Sep 17 00:00:00 2001
From: emoebel <emmanuel.moebel@inria.fr>
Date: Fri, 19 Mar 2021 13:05:14 +0100
Subject: [PATCH] display : corrected bug that was displaying wrong slice_zy
 when denoising button was pushed

---
 pyqt/display/widget_display.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyqt/display/widget_display.py b/pyqt/display/widget_display.py
index 340940a..af7d1bd 100644
--- a/pyqt/display/widget_display.py
+++ b/pyqt/display/widget_display.py
@@ -317,8 +317,8 @@ class DisplayOrthoslicesWidget(QWidget):
             slice_zx = np.mean(slice_zx, axis=1)
             slice_zx = np.transpose(slice_zx)
 
-            min2 = self.z - n
-            max2 = self.z + n
+            min2 = self.x - n
+            max2 = self.x + n
             if min2 < 0          : min2 = 0
             if max2 > self.dim[2]: max2 = self.dim[2]
             slice_zy = self.vol[:, :, min2:max2]
-- 
GitLab