[MINC-users] dcm2mnc and (ir)regular spacing?
Alex Zijdenbos
zijdenbos at gmail.com
Sun Jan 8 20:39:10 EST 2012
On Sun, Jan 8, 2012 at 8:21 PM, Andrew Janke <a.janke at gmail.com> wrote:
>>> This is my method:
>>>
>>> minc_modify_header -sinsert zspace:spacing="regular_" <file.mnc>
>>
>> Well that sets the zspace:spacing attribute; but if the header still contains an explicit list of coordinates, then those wil be used by things like mincresample. Here is the whole MINC volume:
>>
>> test.mnc (http://cl.ly/2h1h1O1i3G0H0S1i0w1k)
>>
>> Try to resample this like like so:
>>
>> mincresample -zstep 5 test.mnc test_z5.mnc
>
> And this is because I am a goose and said "regular_" instead of
> "regular__". (two underscores needed!).
>
> minc_modify_header -sinsert zspace:spacing="regular__" <file.mnc>
! I had missed that too :( and I just wrote a a volume
splitter/restacker to fix it, but as hammers go minc_modify_header is
a lot smaller...
So "regular_" with one underscore is in fact treated as "irregular" :-)
-- A
More information about the MINC-users
mailing list