Thanks to visit codestin.com
Credit goes to hub.docker.com

fetalsvrtk/svrtk

By fetalsvrtk

Updated 2 months ago

Containerized SVR reconstruction toolbox (SVRTK) for fetal MRI: https://github.com/SVRTK/SVRTK

Image
2

4.5K

fetalsvrtk/svrtk repository overview

SVRTK - slice to volume reconstruction toolkit

SVRTK

SVR reconstruction package from King's College London based on MIRTK library for fetal MRI motion correction including:

  • 3D brain
  • 3D body
  • 4D whole fetal heart, including magnitude and blood flow reconstructions
  • 3D placenta
  • 3D and 4D multi-channel T2*
  • SH brain diffusion (HARDI)

The description of the SVRTK package is available at the gitbub repository: https://github.com/SVRTK/SVRTK

The SVRTK docker repository was implemented by Dr Alena Uus (KCL) and Dr Tom Roberts.

In case of any questions please contact: alena.uus (at) kcl.ac.uk

Instructions:

Pull the docker image:

docker pull fetalsvrtk/svrtk:latest

Run the docker mounted to the folder with .nii.gz files for processing:

docker run -it --rm --mount type=bind,source=location_on_your_machine,target=/home/data fetalsvrtk/svrtk /bin/bash

Run SVR reconstruction for fetal brain (structural 3D):

Please note that it requires a 3D brain mask created (e.g., in ITK-SNAP) for the selected template stack.

cd /home/data

mkdir proc_out
cd proc_out
mirtk reconstruct ../outputSVR.nii.gz  5 ../stack1.nii.gz ../stack2.nii.gz ../stack3.nii.gz ../stack4.nii.gz ../stack5.nii.gz -mask ../mask.nii.gz  -template ../stack3.nii.gz -thickness 2.5 2.5 2.5 2.5 2.5 -svr_only -resolution 0.75 -iterations 3 

Run DSVR reconstruction for fetal trunk/body (structural 3D):

Please note that it requires a 3D trunk mask created (e.g., in ITK-SNAP) for the selected template stack.

cd /home/data

mkdir proc_out
cd proc_out
mirtk reconstructFFD ../outputDSVR.nii.gz 6 ../stack1.nii.gz ../stack2.nii.gz ../stack3.nii.gz ../stack4.nii.gz ../stack5.nii.gz ../stack6.nii.gz -mask ../mask.nii.gz -template ../stack2.nii.gz -default_thickness 2.5 -structural -resolution 0.85

For more examples see: https://github.com/SVRTK/SVRTK

In case of any question - please contact: alena.uus (at) kcl.ac.uk


CNN-based fully automated reconstruction fetal brain and thorax reconstruction in atlas space(without required masking / template stack selection) - general_auto_amd tag:

The source code repository: https://github.com/SVRTK/auto-proc-svrtk

docker pull fetalsvrtk/svrtk:general_auto_amd
docker run -it --rm --mount type=bind,source=location_on_your_machine,target=/home/data fetalsvrtk/svrtk:general_auto_amd /bin/bash
  • automated SVR brain reconstruction in the atlas space (SS TSE, 0.5T, 1.5T and 3T, TE=80 ... 180 ms) (Uus et al., 2024; Kuklisova et al., 2012):
bash /home/auto-proc-svrtk/scripts/auto-brain-reconstruction.sh /home/data/[path_to_folder_with_nii_files]  /home/data/[path_to_output_folder] OPTIONAL: [motion correction mode: (0 or 1): 0 - minor, 1 - >180 degree rotations / default: 0];  [slice thickness / default: 3.0];  [output recon resolution / default: 0.8];  [number of packages / default: 1 ]

Uus, A. U., Neves Silva, S., Aviles Verdera, J., Payette, K., Hall, M., Colford, K., Luis, A., Sousa, H. S., Ning, Z., Roberts, T., McElroy, S., Deprez, M., Hajnal, J. V., Rutherford, M. A., Story, L., Hutter, J. (2024) Scanner-based real-time 3D brain+body slice-to-volume reconstruction for T2-weighted 0.55T low field fetal MRI. medRxiv 2024.04.22.24306177: https://doi.org/10.1101/2024.04.22.24306177

Kuklisova-Murgasova, M., Quaghebeur, G., Rutherford, M. A., Hajnal, J. V., & Schnabel, J. A. (2012). Reconstruction of fetal brain MRI with intensity matching and complete outlier removal. Medical Image Analysis, 16(8), 1550–1564.: https://doi.org/10.1016/j.media.2012.07.004

  • automated DSVR body reconstruction in the atlas space (SS TSE, 1.5T and 3T, TE=80 ms) see (Uus et al., 2022):
bash /home/auto-proc-svrtk/scripts/auto-body-reconstruction.sh /home/data/[path_to_folder_with_nii_files]  /home/data/[path_to_output_folder] OPTIONAL: [motion correction mode: (0 or 1): 0 - minor, 1 - >180 degree rotations / default: 1];  [slice thickness / default: 3.0];  [output recon resolution / default: 0.8];  [number of packages / default: 1]

Uus, A., Grigorescu, I., van Poppel, M., Steinweg, J. K., Roberts, T., Rutherford, M., Hajnal, J., Lloyd, D., Pushparajah, K. & Deprez, M. (2022) Automated 3D reconstruction of the fetal thorax in the standard atlas space from motion-corrupted MRI stacks for 21-36 weeks GA range. Medical Image Analysis, 80 (August 2022).: https://doi.org/10.1016/j.media.2022.102484

Input data requirements:

  • more than 5-6 stacks
  • full ROI coverage in all stacks
  • 21-40 weeks GA
  • no extreme shading artifacts
  • singleton pregnancy
  • 0.55 / 1.5 / 3T
  • 80 – 180ms TE
  • sufficient SNR and image quality

Output:

  • 0.8mm resolution
  • Standard radiological space

or use direct docker run option:

 docker run --rm  --mount type=bind,source=LOCATION_ON_YOUR_MACHINE,target=/home/data  fetalsvrtk/svrtk:general_auto_amd sh -c ' bash /home/auto-proc-svrtk/scripts/auto-body-reconstruction.sh /home/data/folder-with-files /home/data/out-thorax-recon-results 1 3.0 0.8 1; chmod 1777 -R /home/data/out-thorax-recon-results ; '

 docker run --rm  --mount type=bind,source=LOCATION_ON_YOUR_MACHINE,target=/home/data  fetalsvrtk/svrtk:general_auto_amd sh -c ' bash /home/auto-proc-svrtk/scripts/auto-brain-reconstruction.sh /home/data/folder-with-files /home/data/out-brain-recon-results 1 3.0 0.8 1; chmod 1777 -R /home/data/out-brain-recon-results ; ' 

0.55T reconstruction options:

#0.55T auto brain reconstruction
docker run --rm  --mount type=bind,source=LOCATION_ON_YOUR_MACHINE,target=/home/data  fetalsvrtk/svrtk:general_auto_amd sh -c ' bash /home/auto-proc-svrtk/scripts/auto-brain-055t-reconstruction.sh /home/data/folder-with-files /home/data/out-brain-recon-results 1 4.5 1.0 1 ; ' 

#0.55T auto body reconstruction
docker run --rm  --mount type=bind,source=LOCATION_ON_YOUR_MACHINE,target=/home/data  fetalsvrtk/svrtk:general_auto_amd sh -c ' bash /home/auto-proc-svrtk/scripts/auto-body-055t-reconstruction.sh /home/data/folder-with-files /home/data/out-body-recon-results 1 4.5 1.0 1 ; '

Recommendations:

In order to make sure that reconstruction is fast enough - please select a sufficient number of CPUs (e.g., > 8) and amount of RAM (e.g., > 20 GB) in the docker settings.


For GUI-enabled version run:

  • for Ubuntu:
docker run -it -rm -e DISPLAY=$DISPLAY --mount type=bind,source=location_on_your_machine,target=/home/data -v /tmp/.X11-unix:/tmp/.X11-unix fetalsvrtk/svrtk:latest /bin/bash
  • for Windows:
docker run --env DISPLAY="host.docker.internal:0.0" -it -rm -v %inputFolder%:/home/data fetalsvrtk/svrtk:latest  /bin/bash
  • for OSX:
docker run -it  --rm --mount type=bind,source=location_on_your_machine,target=/home/data --env=“DISPLAY” --ipc="host" --privileged  --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw”  fetalsvrtk/svrtk:latest  /bin/bash

License:

The SVRTK dockers are distributed under the terms of the GNU General Public License v3.0. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation. This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Disclaimer:

This software has been developed for research purposes only, and hence should not be used as a diagnostic tool. In no event shall the authors or distributors be liable to any direct, indirect, special, incidental, or consequential damages arising of the use of this software, its documentation, or any derivatives thereof, even if the authors have been advised of the possibility of such damage.

Citation and acknowledgements:

Please give appropriate credit to the SVRTK package by citing Uus et al., 2020 (original work where SVRTK was implemented).

I.e., this is the official citation for SVRTK:

Uus, A., Zhang, T., Jackson, L., Roberts, T., Rutherford, M., Hajnal, J.V., Deprez, M. (2020). Deformable Slice-to-Volume Registration for Motion Correction in Fetal Body MRI and Placenta. IEEE Transactions on Medical Imaging, 39(9), 2750-2759: http://dx.doi.org/10.1109/TMI.2020.2974844

And use additional references for individual reconstruction functions:

3D automated fetal brain reconstruction in the atlas space:

Uus, A. U., Hall, M., Payette, K., Hajnal, J. V., Deprez, M., Hutter, J., Rutherford, M. A., Story, L. (2023) Combined quantitative T2* map and structural T2- weighted tissue-specific analysis for fetal brain MRI: pilot automated pipeline. PIPPI MICCAI 2023 workshop (Accepted / in press)

Original reconstruction pipeline for 3D fetal brain (original software using IRTK: https://github.com/BioMedIA/IRTK):

Kuklisova-Murgasova, M., Quaghebeur, G., Rutherford, M. A., Hajnal, J. V., & Schnabel, J. A. (2012). Reconstruction of fetal brain MRI with intensity matching and complete outlier removal. Medical Image Analysis, 16(8), 1550–1564.: https://doi.org/10.1016/j.media.2012.07.004

3D DSVR fetal body / placenta reconstruction:

Uus, A., Zhang, T., Jackson, L., Roberts, T., Rutherford, M., Hajnal, J.V., Deprez, M. (2020). Deformable Slice-to-Volume Registration for Motion Correction in Fetal Body MRI and Placenta. IEEE Transactions on Medical Imaging, 39(9), 2750-2759: http://dx.doi.org/10.1109/TMI.2020.2974844

3D automated fetal thorax reconstruction in the atlas space:

Uus, A., Grigorescu, I., van Poppel, M., Steinweg, J. K., Roberts, T., Rutherford, M., Hajnal, J., Lloyd, D., Pushparajah, K. & Deprez, M. (2022) Automated 3D reconstruction of the fetal thorax in the standard atlas space from motion-corrupted MRI stacks for 21-36 weeks GA range. Medical Image Analysis, 80 (August 2022).: https://doi.org/10.1016/j.media.2022.102484

4D cardiac magnitude reconstruction (original software using IRTK: https://github.com/jfpva/fetal_cmr_4d):

van Amerom, J. F. P., Lloyd, D. F. A., Deprez, M., Price, A. N., Malik, S. J., Pushparajah, K., van Poppel, M. P. M, Rutherford, M. A., Razavi, R., Hajnal, J. V. (2019). Fetal whole-heart 4D imaging using motion-corrected multi-planar real-time MRI. Magnetic Resonance in Medicine, 82(3): 1055-1072. : https://doi.org/10.1002/mrm.27858

4D cardiac velocity reconstruction:

Roberts, T. A., van Amerom, J. F. P., Uus, A., Lloyd, D. F. A., Price, A. N., Tournier, J-D., Mohanadass, C. A., Jackson, L. H., Malik, S. J., van Poppel, M. P. M, Pushparajah, K., Rutherford, M. A., Razavi, R., Deprez, M., Hajnal, J. V. (2020).Fetal whole heart blood flow imaging using 4D cine MRI. Nat Commun 11, 4992: https://doi.org/10.1038/s41467-020-18790-1

SH brain diffusion reconstruction (HARDI):

Deprez, M., Price, A., Christiaens, D., Estrin, G.L., Cordero-Grande, L., Hutter, J., Daducci, A., Tournier, J-D., Rutherford, M., Counsell, S. J., Cuadra, M. B., Hajnal, J. V. (2020). Higher Order Spherical Harmonics Reconstruction of Fetal Diffusion MRI with Intensity Correction. IEEE Transactions on Medical Imaging, 39 (4), 1104–1113.: https://doi.org/10.1109/tmi.2019.2943565.

3D and 4D T2* placenta reconstruction:

Uus, A., Steinweg, J. K., Ho, A., Jackson, L. H., Hajnal, J. V., Rutherford, M. A., Deprez, M., Hutter, J. (2020) Deformable Slice-to-Volume Registration for Reconstruction of Quantitative T2* Placental and Fetal MRI. In: Hu Y. et al. (eds) Medical Ultrasound, and Preterm, Perinatal and Paediatric Image Analysis. ASMUS 2020, PIPPI 2020. Lecture Notes in Computer Science, vol 12437. Springer, Cham: https://doi.org/10.1007/978-3-030-60334-2_22

Tag summary

Content type

Image

Digest

sha256:784fcb14f

Size

11 GB

Last updated

2 months ago

docker pull fetalsvrtk/svrtk:general_auto_amd