Paul
Paul

Reputation: 57

How to correlate different MRI sequences images in NIFTI format?

I am new on Medical Imaging. I am dealing with MRI images, namely T2 and DWI.

I uploaded both images with nib.load, yet each sequence image has a different number of slices (volume, depth?). If I select one slice (z coordinate), how can get the corresponding slice on the other sequence image? ITK does it correctly, so maybe something in the NIFTI header could help?

Thank you so much for reading! I also tried interpolation, but it did not work.

Upvotes: 1

Views: 200

Answers (2)

Paul
Paul

Reputation: 57

Reading the NIFTI, namely affine, and extracting the translation Transformation Matrix to create a mapping from the T2 to the DWI voxels.

Hint: nibabel.

Upvotes: 1

Dženan
Dženan

Reputation: 3395

If ITK does it correctly, why not just use ITK?

If you insist on hand-rolling your own index <-> physical space conversion routines, take a look at how ITK computes those matrices and the publicly accessible methods which use them. For being specific to NIFTI, take a look at ITK's NIFTI reader which sets the relevant metadata in itk::Image.

Upvotes: 2

Related Questions