Commit 647494a055af48e1de4446d9b6dda59aaa8a473e

Authored by Thiago Franco de Moraes
1 parent ade84989

Fixed problem with lazy threshold

Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
invesalius/data/slice_.py
... ... @@ -1202,6 +1202,8 @@ class Slice(object):
1202 1202 thresh_min, thresh_max = self.current_mask.threshold_range
1203 1203 m = (((slice_matrix >= thresh_min) & (slice_matrix <= thresh_max)) * 255)
1204 1204 m[mask == 1] = 1
  1205 + m[mask == 2] = 2
  1206 + m[mask == 253] = 253
1205 1207 m[mask == 254] = 254
1206 1208 return m.astype('uint8')
1207 1209  
... ...