BIC-MNI / Display

MNI Display project, converted from CVS
Other
8 stars 4 forks source link

Display develop HEAD segfaults with high-res label as "-label", loads as normal image. #66

Closed gdevenyi closed 8 years ago

gdevenyi commented 8 years ago
> mincinfo label1.mnc
file: label1.mnc
image: signed__ long 0 to 106
image dimensions: xspace zspace yspace
    dimension name         length         step        start
    --------------         ------         ----        -----
    xspace                    490          0.3     -75.4061
    zspace                    734          0.3     -90.1617
    yspace                    734          0.3     -80.3497
> print_all_labels label1.mnc
Reading Volume: ...............................................................
Label: 1 29788
Label: 2 17682
Label: 4 15375
Label: 5 7204
Label: 6 17555
Label: 101 33684
Label: 102 17626
Label: 104 13886
Label: 105 5768
Label: 106 19689
> Display model.mnc -label label1.mnc
Input model.mnc
Reading Volume: ...............................................................
Objects input.
Input label1.mnc
Reading Volume: ...............................................................
Objects input.
Segmentation fault
vfonov commented 8 years ago

try mincreshape -byte -image_range 0 106 -valid_range 0 106 label1.mnc label2.mnc and then try loading label2.mnc

gdevenyi commented 8 years ago

Same failure.

rdvincent commented 8 years ago

@gdevenyi thanks for the report - i have reproduced it with a simulated file, should fix it today.

rdvincent commented 8 years ago

@gdevenyi This should be fixed now.

gdevenyi commented 8 years ago

Yup, fixed! Thanks.