[MINC-users] mincreshape sets start/step on vector_dimension
Vladimir S. FONOV
vladimir.fonov at gmail.com
Thu Oct 20 10:56:33 EDT 2016
Yes,definitely commented out here:
https://github.com/BIC-MNI/libminc/blob/develop/libsrc/minc_convenience.c#L863
On 2016-10-20 10:47 AM, Robert D. Vincent wrote:
> Hi Alex,
>
> I think Vlad may have fixed this a while back - I don't know if it's in a
> release yet.
>
> -bert
>
> On Thu, Oct 20, 2016 at 10:44 AM, Alex Zijdenbos <zijdenbos at gmail.com>
> wrote:
>
>> Hi all,
>>
>> Using mincreshape to manipulate the spatial dimensions of a deformation
>> field, I notice two things (example below):
>>
>> 1) It complains about 'vector_dimension' being a non-standard dimension.
>> Given the ubiquitous minctracc-generated deformation fields, shouldn't
>> 'vector_dimension' be a 'standard' dimension by now?
>>
>> 2) it arbitrarily sets start=0 and step=1 for that dimension. If a
>> dimension is untouched and doesn't/shouldn't have start or step values to
>> begin with, I'd say that mincreshape shouldn't 'invent' a start and step
>> for it, but leave these undefined.
>>
>> Thoughts?
>>
>> -- A
>>
>>
>> $ mincreshape -dimorder zspace,yspace,xspace in_grid_0.mnc out_grid_0.mnc
>> (from micreate_std_variable): Variable 'vector_dimension' is not a standard
>> MINC variable
>> Copying
>> chunks:.....................................................
>> ............................................................
>> ............................................................
>> ............................................................
>> ............................................................
>> ............................................................
>> ............................................................
>> ............................................................
>> ............................................................
>> ..........Done.
>> $ mincinfo in_grid_0.mnc out_grid_0.mnc
>> file: in_grid_0.mnc
>> image: signed__ float -11.107932090759277344 to 11.2635040283203125
>> image dimensions: vector_dimension zspace yspace xspace
>> dimension name length step start
>> -------------- ------ ---- -----
>> vector_dimension 3 unknown unknown
>> zspace 181 1 -72
>> yspace 217 1 -126
>> xspace 181 1 -90
>>
>>
>> file: out_grid_0.mnc
>> image: signed__ float -11.107932090759277344 to 11.2635040283203125
>> image dimensions: vector_dimension zspace yspace xspace
>> dimension name length step start
>> -------------- ------ ---- -----
>> vector_dimension 3 1 0
>> zspace 181 1 -72
>> yspace 217 1 -126
>> xspace 181 1 -90
>> _______________________________________________
>> MINC-users at bic.mni.mcgill.ca
>> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>>
> _______________________________________________
> MINC-users at bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>
--
Best regards,
Vladimir S. FONOV ~ vladimir.fonov <at> gmail.com
More information about the MINC-users
mailing list