[MINC-users] mincreshape sets start/step on vector_dimension
Alex Zijdenbos
zijdenbos at gmail.com
Thu Oct 20 10:44:32 EDT 2016
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
More information about the MINC-users
mailing list