Commit ad467829098b1689f04b68b125f5d2f1e2016ed7
1 parent
f7dab69f
Exists in
master
and in
56 other branches
WW&WL from clut_imagedata affects some types of mips
Showing
1 changed file
with
8 additions
and
1 deletions
Show diff stats
invesalius/data/slice_.py
| @@ -932,7 +932,14 @@ class Slice(object): | @@ -932,7 +932,14 @@ class Slice(object): | ||
| 932 | self.nodes = pubsub_evt.data | 932 | self.nodes = pubsub_evt.data |
| 933 | self.from_= WIDGET | 933 | self.from_= WIDGET |
| 934 | for buffer_ in self.buffer_slices.values(): | 934 | for buffer_ in self.buffer_slices.values(): |
| 935 | - buffer_.discard_vtk_image() | 935 | + if self._type_projection in (const.PROJECTION_NORMAL, |
| 936 | + const.PROJECTION_MaxIP, | ||
| 937 | + const.PROJECTION_MinIP, | ||
| 938 | + const.PROJECTION_MeanIP, | ||
| 939 | + const.PROJECTION_LMIP): | ||
| 940 | + buffer_.discard_vtk_image() | ||
| 941 | + else: | ||
| 942 | + buffer_.discard_buffer() | ||
| 936 | 943 | ||
| 937 | knodes = sorted(self.nodes) | 944 | knodes = sorted(self.nodes) |
| 938 | p0 = knodes[0].value | 945 | p0 = knodes[0].value |