Commit 0a7731f971531fcd8b7a1f14f78f66c0c3c34d85

Authored by tfmoraes
1 parent 28307a22

FIX: It wasn't opening analyze normaly because it was missing the creation of ma…

…trix_shape attribute in project
Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
invesalius/control.py
@@ -435,6 +435,7 @@ class Controller(): @@ -435,6 +435,7 @@ class Controller():
435 proj.window = proj.threshold_range[1] - proj.threshold_range[0] 435 proj.window = proj.threshold_range[1] - proj.threshold_range[0]
436 proj.level = (0.5 * (proj.threshold_range[1] + proj.threshold_range[0])) 436 proj.level = (0.5 * (proj.threshold_range[1] + proj.threshold_range[0]))
437 proj.spacing = header['pixdim'][1:4] 437 proj.spacing = header['pixdim'][1:4]
  438 + proj.matrix_shape = matrix.shape
438 439
439 self.Slice = sl.Slice() 440 self.Slice = sl.Slice()
440 self.Slice.matrix = matrix 441 self.Slice.matrix = matrix