From b26abc58b91dd8bc7516f994481a0b6f7d6e2610 Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Tue, 30 Aug 2016 14:17:43 -0300 Subject: [PATCH] Segmenting using floodfill --- invesalius/data/styles.py | 4 +++- invesalius/gui/widgets/gradient.py | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/invesalius/data/styles.py b/invesalius/data/styles.py index 30ac54b..ae7d18a 100644 --- a/invesalius/data/styles.py +++ b/invesalius/data/styles.py @@ -1898,7 +1898,9 @@ class FloodFillSegmentInteractorStyle(DefaultInteractorStyle): mask = self.viewer.slice_.current_mask.matrix[1:, 1:, 1:] image = self.viewer.slice_.matrix - if mask[z, y, x] < self.config.t0 or mask[z, y, x] > self.config.t1: + print image[z, y, x] + + if image[z, y, x] < self.config.t0 or image[z, y, x] > self.config.t1: return if self.config.target == "3D": diff --git a/invesalius/gui/widgets/gradient.py b/invesalius/gui/widgets/gradient.py index 9f4fc30..e93dd95 100755 --- a/invesalius/gui/widgets/gradient.py +++ b/invesalius/gui/widgets/gradient.py @@ -493,7 +493,6 @@ class GradientCtrl(wx.Panel): return self.minimun def _GenerateEvent(self, event): - print "GEN" if event == myEVT_THRESHOLD_CHANGING: self.changed = True elif event == myEVT_THRESHOLD_CHANGED : -- libgit2 0.21.2