And then many ROIs were drawn on card+orig.
Now I want to transform these cardinal ROIs back to match the original oblique dataset (OriginalAnatomy+orig) perfectly.
And I have tried the method like this:
But it doesn’t work because the afni GUI said there is still oblique angle difference of 2.97 degrees between reoblique+orig. and OriginalAnatomy+orig.
Do you know how to process the ROIs to make them match the original oblique dataset perfectly?
I’m very sorry to disturb you.
Best regards,
Yu
Use the -gridset option to force the grid to the original dataset and use 3drefit to copy the IJK_TO_DICOM_REAL attribute from the original dataset to the output dataset You can see the xyz->xyz transformation matrix used with the “-verb” option and invert that with cat_matvec.
I think WARPDRIVE_MATVEC_INV_000000 is the attribute of inversion matrix.
And I can transform card+orig back to match OriginalAnatomy+orig using these codes:
Unfortunately, the afni GUI say reoblique+orig and OriginalAnatomy+orig still have an angle difference of 9.835 degrees.
This warning makes me very sad !! :-(
So I compare the matrix outputted by 3dWarp -verb and the matrix stored in card+orig.HEAD for checking:
This makes me very confused! :-S:-S
Because I thought the matrix outputted by 3dWarp -verb is the forward matrix. It is unexpectedly the same as the inversion matrix stored in the HEAD file now.
What do you think?
Yu
Hi Daniel,
At the last step of inverse processing, we copied the attribute IJK_TO_DICOM_REAL from the original dataset to the reobliqued dataset using:
And the Afni GUI didn’t give an angle difference warning anymore.
But just now, I find the help files of 3drefit say the option -atrcopy can’t really change an attribute without the option -saveatr ?
I am very confused.
Maybe I should do the last step using:
While “-saveatr” won’t hurt, it isn’t necessary for this kind of dataset attribute. The atrcopy is good enough here.
The
National Institute of Mental Health (NIMH) is part of the National Institutes of
Health (NIH), a component of the U.S. Department of Health and Human
Services.