Replace incorrect header information from mrinfo


#1

Hi,

I have a processed data that I think the header is incorrect. The result from mrinfo is:
Transform: 1 -0 0 -267.8
-0 1 0 -353.3
-0 -0 1 -123.5

While the correct one (from original data) should be
Transform: 0.9856 0.07446 0.1516 -102.2
-0.09317 0.9884 0.1203 -114.1
-0.1409 -0.1326 0.9811 -123.5

Is there any tool in mrtrix allow for replacing header in one image with header from another one?

Thank you in advance. Any suggestion will be helpful.

Best,
Khoi


#2

If you want to replace the header transformation without applying reorientation or regridding, you can do that with:
mrtransform input.mif -replace reference.mif output.mif