BIC-MNI / minc-tools

Basic minc-tools from former minc repository
Other
30 stars 25 forks source link

mincaverage ignores -no_check_dimensions #31

Closed gdevenyi closed 8 years ago

gdevenyi commented 8 years ago

I'm trying to average overlapping but ever-so-slightly different dimensioned (off by 2 vox) scans:

mincaverage *.mnc test.mnc
Files OAS1_0001_MR1_mpr-4_anon.mnc and OAS1_0001_MR1_mpr-1_anon.mnc have different sizes of dimensions
mincaverage -nocheck_dimensions *.mnc test.mnc
Files OAS1_0001_MR1_mpr-4_anon.mnc and OAS1_0001_MR1_mpr-1_anon.mnc have different sizes of dimensions
vfonov commented 8 years ago

What does mincinfo says?

gdevenyi commented 8 years ago

I explicitly made them different sizes by doing an autocrop -isoexpand 1v

file: OAS1_0001_MR1_mpr-1_anon.mnc
image: signed__ short -32768 to 32767
image dimensions: xspace zspace yspace
    dimension name         length         step        start
    --------------         ------         ----        -----
    xspace                    128        -1.25          160
    zspace                    210            1          -43
    yspace                    212            1         -113
file: OAS1_0001_MR1_mpr-4_anon.mnc
image: signed__ short -32768 to 32767
image dimensions: xspace zspace yspace
    dimension name         length         step        start
    --------------         ------         ----        -----
    xspace                    130        -1.25       161.25
    zspace                    212            1          -44
    yspace                    214            1         -114
rdvincent commented 8 years ago

nocheck_dimensions just tells tools to ignore the specifics of the dimension names and transform. The library still checks that the individual dimension lengths are consistent.

gdevenyi commented 8 years ago

Ah, okay. So that failure mode makes sense now.

Perhaps will offer a documentation update for the current option to be a bit more clear.