[MINC-users] Z-axis flipping or rotation
D. Louis Collins
louis.collins at mcgill.ca
Fri Mar 24 08:24:47 EST 2006
rotation by 180 degrees might be good, but again might not - this may
change left/right in the image. If the data is pointing down, and left
is on left, then you'lll need to mirror the image with a negative scale
factor on y:
param2xfm -scale 1 -1 1 flip.xfm
again, you'll have to experiment with the mincresample to get the data
in the right place.
-Louis
On Mar 23, 2006, at 1:31 PM, Jason Lerch wrote:
> I think the combination of param2xfm and mincresample is actually what
> you want. Run something like the following:
>
> param2xfm -rotation 0 0 180 rotation.xfm
> mincresample -tfm_input_sampling file.mnc -transform rotation.xfm
> output.mnc
>
> You'll have to experiment with getting the right rotations for your
> case.
>
> Jason
>
> tpb1 at ualberta.ca wrote:
>
>> I have a brain that is upside down and I need to orient it properly.
>> I
>> looked in conglomerate and minctools, and it looks like mincreshape
>> should do the trick, but when I try:
>> mincreshape +zdirection p3.mnc p3_zflip.mnc, the following prints out:
>> Copying
>> chunks:...............................................................
>> ..
>> ...............................................................Done.
>>
>> But the output file is not changed at all. What am I doing wrong?
>>
>> Thanks,
>> Thomas
>>
>> _______________________________________________
>> 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
>
More information about the MINC-users
mailing list