You would need to reverse engineer parts of spm_dicom_convert in order
to do this. The contents of these matrices correspond to multiple
tags in the DICOM headers. See the write_volume function of
spm_dicom_convert for more information about which tags are involved.
On 5 August 2011 18:02, Aaryani Tipirneni <[log in to unmask]> wrote:
> Hi SPM users,
> I converted images from dicom to nifti format,did coregistration and now I want to write the images in nifti to dicom. For converting, I'm copying the header information from the original dicom images to the coregistered images. But as due to the coregistration, the ImagePostionPatient will change so I was wondering if I could get this information from the nifti header (may be in the mat file) to replace this tag in the dicom header.
> Please tell me your suggestions.