leoliuf / MRiLab

A Numerical Magnetic Resonance Imaging (MRI) Simulation Platform
https://leoliuf.github.io/MRiLab/
BSD 2-Clause "Simplified" License
201 stars 63 forks source link

about load phantom #47

Open seanbule opened 1 year ago

seanbule commented 1 year ago

Hi, I want to load new phantom, like knee phantom. what shall I do? Do I need to design it myself? Many parameters may not be clear to me. Thank you all very much for answering my question.

leoliuf commented 1 year ago

You might want to read this section https://leoliuf.github.io/MRiLab/manual/MRiLab_User_Guide_v1_3/MRiLab_User_Guidech5.html#x10-1010005.3

Also, if you have high-resolution knee images, you can create customized knee phantoms by segmenting tissues, assigning tissue parameters, and packaging all information into a virtual object (also see the above link).

seanbule commented 1 year ago

I'll try and thank you for your reply

Kwnigrk commented 1 year ago
  1. You need the image and the masks of your tissues
  2. Load your dicom image and masks (in matlab )
  3. Make your masks binary
  4. Mask your image
  5. Create a VObj function, where you must assign your zero (T1,T2,T2Star..etc)...then assign the appropriate values according to the tissue
  6. Go in another script and call the function in order to save it in mat file format, for example: VObj=VObj_masked_image(flag); save 'VObj_masked.mat' 'VObj'
  7. Open the mat file in MRiLab <3

*Tips : use Matlab 2013. When you make your VObj function name the variables with the same name as the author has done! Also go to MRilLab file->Resources->MakePhantom2.m and examine this example or the other two! It was very helpful to understand how to work!