I had the warps for each subject in a population from population_template output.
And, I converted one of these warps in .mif into nifti format via mrconvert.
Then, i tried to use mrtransform in order to apply registration by using warps. -warp_full option doesn’t work with .nii.gz so i reconverted it into .mif. Then, i noticed that the nifti and .mif warp images that i had , don’t contain linear transform matrix in the header and I had this error with mrtransform: « no linear transform found in initialisation syn warps image header »
when i check the warp image with mrinfo, that i converted from .mif into .nii.gz and reconverted from .nii.gz into .mif, don’t have any linear1 and linear2 matrix.
I had already extract the linear transformation matrix with warp images from population_template . So , is there any solution to get .mif warp image with linear transformation in it by using linear transformation matrix? or how can i get the .mif warp image containing linear transform matrix.
Converting from .mif to .nii gets rid of the header sections containing linear1 and linear2.
Do you still have the linear transformations from the population template temporary directory?
If you had them, you could calculate the halfway forward and halfway inverse transformations using transformcalc and manually add them to the header by converting the warps to .mih files in which you can add them as plain text: