Commit ab86ef44802f0bc9d819cae3e8970a325a5b71c3

Authored by Thiago Franco de Moraes
1 parent 36b4b89a
Exists in master

subtraction was deprecated in numpy, using xor

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
invesalius/data/slice_.py
... ... @@ -1373,7 +1373,7 @@ class Slice(with_metaclass(utils.Singleton, object)):
1373 1373 m[:] = ((m1 > 2) + (m2 > 2)) * 255
1374 1374  
1375 1375 elif op == const.BOOLEAN_DIFF:
1376   - m[:] = ((m1 > 2) - ((m1 > 2) & (m2 > 2))) * 255
  1376 + m[:] = ((m1 > 2) ^ ((m1 > 2) & (m2 > 2))) * 255
1377 1377  
1378 1378 elif op == const.BOOLEAN_AND:
1379 1379 m[:] = ((m1 > 2) & (m2 > 2)) * 255
... ...