Commit f825c0de3d047a2414630f11d447056841e00864
1 parent
dc90d347
Exists in
master
and in
5 other branches
ENH: Scroll to central slices when opening a DICOM
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
invesalius/control.py
@@ -405,7 +405,9 @@ class Controller(): | @@ -405,7 +405,9 @@ class Controller(): | ||
405 | Publisher.sendMessage('Load measurement dict', | 405 | Publisher.sendMessage('Load measurement dict', |
406 | proj.measurement_dict) | 406 | proj.measurement_dict) |
407 | 407 | ||
408 | - proj.presets.thresh_ct[_('Custom')] = proj.threshold_range | 408 | + Publisher.sendMessage(('Set scroll position', 'AXIAL'),proj.matrix_shape[0]/2) |
409 | + Publisher.sendMessage(('Set scroll position', 'SAGITAL'),proj.matrix_shape[1]/2) | ||
410 | + Publisher.sendMessage(('Set scroll position', 'CORONAL'),proj.matrix_shape[2]/2) | ||
409 | 411 | ||
410 | Publisher.sendMessage('End busy cursor') | 412 | Publisher.sendMessage('End busy cursor') |
411 | 413 |