[MINC-users] strange mnc2nii behaviour

Najmeh Khalili M. najma at bic.mni.mcgill.ca
Thu Oct 18 08:15:12 EDT 2007


Hi Soren,

I had that problem too. But Andrew tested nii2mnc
it with even a longer file name and it worked.

Naj


On Thu, 18 Oct 2007, Soren Christensen wrote:

> Hi,
>  Thanks for the help with mnc2nii earlier in the week. Used
> correct_header and still use MINC 1.5 for now so apologies if this is
> not a bug in MINC 2.0:
> I Had mnc2nii crash on a long filename - here's and example (with a
> filename to illustrate the point):
> mnc2nii -signed -float t.mnc 0123456789012345678901234567890123456789.nii
> ... The usual header output
> MINC type 5 signed 1
> Segmentation fault
>
>
> When making the filename shorter or longer:
> mnc2nii -signed -float t.mnc 01234567890123456789012345678901234567890.nii
> ... The usual header output
> MINC type 5 signed 1
> 0: 256 0 1
> 1: 124 1 1
> 2: 256 2 1
> bytes per voxel 4
> # of voxels 8126464
> 0 0 0 => -105.570312 -105.400002 -90.670311
> 10 0 0 => -96.976562 -105.400002 -90.670311
> 0 10 0 => -105.570312 -90.400002 -90.670311
> 0 0 10 => -105.570312 -105.400002 -82.076561
> 10 10 10 => -96.976562 -90.400002 -82.076561
>
> = no errors
>
>
> Is there something going on with a string pointer somewhere in nii2mnc?
>
> Cheers
> Soren
> _______________________________________________
> MINC-users at bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>



More information about the MINC-users mailing list