Commit b26abc58b91dd8bc7516f994481a0b6f7d6e2610

Authored by Thiago Franco de Moraes
1 parent d54e05ee
Exists in ffill_segmentation

Segmenting using floodfill

invesalius/data/styles.py
... ... @@ -1898,7 +1898,9 @@ class FloodFillSegmentInteractorStyle(DefaultInteractorStyle):
1898 1898 mask = self.viewer.slice_.current_mask.matrix[1:, 1:, 1:]
1899 1899 image = self.viewer.slice_.matrix
1900 1900  
1901   - if mask[z, y, x] < self.config.t0 or mask[z, y, x] > self.config.t1:
  1901 + print image[z, y, x]
  1902 +
  1903 + if image[z, y, x] < self.config.t0 or image[z, y, x] > self.config.t1:
1902 1904 return
1903 1905  
1904 1906 if self.config.target == "3D":
... ...
invesalius/gui/widgets/gradient.py
... ... @@ -493,7 +493,6 @@ class GradientCtrl(wx.Panel):
493 493 return self.minimun
494 494  
495 495 def _GenerateEvent(self, event):
496   - print "GEN"
497 496 if event == myEVT_THRESHOLD_CHANGING:
498 497 self.changed = True
499 498 elif event == myEVT_THRESHOLD_CHANGED :
... ...