kschan0214 / sepia

Matlab GUI pipeline application for quantitative susceptibility mapping (QSM)
MIT License
46 stars 10 forks source link

New echocombine #22

Closed korbinian90 closed 2 years ago

korbinian90 commented 2 years ago

Hi Kwok,

This pull-request includes romeo phase unwrapping and the romeo total field calculation option. I requires ROMEO version v3,2.4 (or future releases, which should be compatible) https://github.com/korbinian90/ROMEO/releases

I included the option to use the romeo mask inside sepia. This just replaces the mask in headerAndExtraData. It works but may not be the best way to do it. Also the mask cannot be saved this way.

Implementation detail: Romeo requires temporary storage as the files are first written to disk, then romeo is called and produces output files on disk. The temporary storage is in the default OS tempdir, created by fullfile(tempdir, 'romeo_tmp'). As I didn't find a way to access the output directory for SEPIA, I couldn't write romeo outputs there. The temporary folder is created and deleted at the end.

Thanks again for adapting SEPIA to allow custom echo combinations! And please let me know, if there are some aspects that I could improve.

kschan0214 commented 2 years ago

Hi Korbinian,

I merged the pull request. The ROMEO panel looks nice and neat!

After some testing, I fixed the following compatible issues between ROMEO and SEPIA in the Wrapper_TotalField_ROMEO.m

All the changes are available in the dev branch (the new_echocombine branch will soon be deleted as the feature development is done). You can see if you agree on these changes when you have time :)

korbinian90 commented 2 years ago

Hi Kwok!

Thanks for these changes to make the output compatible! I totally agree with all of those. These were oversights on my part.

Cheers, Korbinian

Am Di., 3. Aug. 2021 um 19:15 Uhr schrieb Kwok-Shing Chan < @.***>:

Hi Korbinian,

I merged the pull request. The ROMEO panel looks nice and neat!

After some testing, I fixed the following compatible issues between ROMEO and SEPIA in the Wrapper_TotalField_ROMEO.m

  • convert unit of TE from second in SEPIA header to ms in the parameters variable of ROMEO
  • invert the N_std variable by 1, as the N_std should have higher values in noisy region (opposite of SNR map)
  • convert the unit of TotalField from Hz to radHz, as the default output unit of the echo combine method wrapper
  • set the NaN (if any) in TotalField to 0

All the changes are available in the dev branch (the new_echocombine branch will soon be deleted as the feature development is done). You can see if you agree on these changes when you have time :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kschan0214/sepia/pull/22#issuecomment-892019548, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ7HAUJRFHE4E5UAMENWLLT3AP2VANCNFSM5BJ5BTZA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .