[MINC-users] troubles with mincmakescalar
Jason Lerch
jason@bic.mni.mcgill.ca
Fri Nov 12 09:44:04 2004
Hi Daniel,
if you just want to extract the individual components of the vector the
program mincreshape ought to do the trick for you. Something like:
mincreshape -clobber -start 0,0,0,0 -count 0,100,128,112 old.mnc
new_dim0.mnc
mincreshape -clobber -start 1,0,0,0 -count 0,100,128,112 old.mnc
new_dim1.mnc
mincreshape -clobber -start 2,0,0,0 -count 0,100,128,112 old.mnc
new_dim2.mnc
Somebody correct me if I'm wrong here ...
Jason
On Nov 12, 2004, at 8:07 AM, Daniel Schwarz wrote:
> Dear minc users,
>
> My mincmakescalar does not seem to work properly. I wanted to use it
> to split vector image (result of mritotal -nonlinear) into 3 scalar
> images (step by step). Result of mincmakescalar is again a vector
> image...:-(
>
> [schwarzd@localhost Experiment]$ mincinfo A2.nonlinear_grid_0.mnc
> file: A2.nonlinear_grid_0.mnc
> image: signed__ short -32766 to 32766
> image dimensions: vector_dimension zspace yspace xspace
> dimension name length step start
> -------------- ------ ---- -----
> vector_dimension 3 unknown unknown
> zspace 18 4 -1
> yspace 20 4 5
> xspace 20 4 3
> [schwarzd@localhost Experiment]$
> [schwarzd@localhost Experiment]$ mincmakescalar -linear 1,0,0
> A2.nonlinear_grid_0.mnc test.mnc
> Processing:......................................................Done
> [schwarzd@localhost Experiment]$ mincinfo test.mnc
> file: test.mnc
> image: signed__ short -32766 to 32766
> image dimensions: vector_dimension zspace yspace xspace
> dimension name length step start
> -------------- ------ ---- -----
> vector_dimension 3 unknown unknown
> zspace 18 4 -1
> yspace 20 4 5
> xspace 20 4 3
>
> ....I have minc-1.3...
> Thanks in advance for any reply (somebody might know how to split the
> vector image into three components in another way)....
>
> Daniel Schwarz
>
> _______________________________________________
> MINC-users@bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users