Commit 25c692a7f318de5d668de442b1a82396c4cdebfa
1 parent
826b7511
Exists in
master
and in
47 other branches
More cleaning on slice
Showing
1 changed file
with
0 additions
and
23 deletions
Show diff stats
invesalius/data/slice_.py
... | ... | @@ -160,8 +160,6 @@ class Slice(object): |
160 | 160 | |
161 | 161 | Publisher.subscribe(self._set_projection_type, 'Set projection type') |
162 | 162 | |
163 | - Publisher.subscribe(self.InputImageWidget, 'Input Image in the widget') | |
164 | - | |
165 | 163 | Publisher.subscribe(self.OnExportMask,'Export mask to file') |
166 | 164 | |
167 | 165 | Publisher.subscribe(self.OnCloseProject, 'Close project data') |
... | ... | @@ -314,7 +312,6 @@ class Slice(object): |
314 | 312 | |
315 | 313 | to_reload = False |
316 | 314 | if threshold_range != self.current_mask.threshold_range: |
317 | - print "<<<<<<<<<<<<<<<< DIFERENT >>>>>>>>>>>>>>>>>>>>>>>" | |
318 | 315 | to_reload = True |
319 | 316 | for orientation in self.buffer_slices: |
320 | 317 | self.buffer_slices[orientation].discard_vtk_mask() |
... | ... | @@ -938,26 +935,6 @@ class Slice(object): |
938 | 935 | |
939 | 936 | Publisher.sendMessage('Reload actual slice') |
940 | 937 | |
941 | - def InputImageWidget(self, pubsub_evt): | |
942 | - widget, orientation = pubsub_evt.data | |
943 | - | |
944 | - original_orientation = Project().original_orientation | |
945 | - | |
946 | - img = self.buffer_slices[orientation].vtk_image | |
947 | - | |
948 | - cast = vtk.vtkImageCast() | |
949 | - cast.SetInput(img) | |
950 | - cast.SetOutputScalarTypeToDouble() | |
951 | - cast.ClampOverflowOn() | |
952 | - cast.Update() | |
953 | - | |
954 | - flip = vtk.vtkImageFlip() | |
955 | - flip.SetInput(cast.GetOutput()) | |
956 | - flip.SetFilteredAxis(1) | |
957 | - flip.FlipAboutOriginOn() | |
958 | - flip.Update() | |
959 | - widget.SetInput(flip.GetOutput()) | |
960 | - | |
961 | 938 | def UpdateSlice3D(self, pubsub_evt): |
962 | 939 | widget, orientation = pubsub_evt.data |
963 | 940 | img = self.buffer_slices[orientation].vtk_image | ... | ... |