Skip to content

Commit

Permalink
Improve layout
Browse files Browse the repository at this point in the history
  • Loading branch information
MengXiangxi committed Mar 3, 2024
1 parent 7f2b864 commit b363e0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ def resample_nifti_to(nifti_in, nifti_ref, fname_out, img_type='intensity'):
### Convert PET DICOM to NIFTI with SUV

`dicom2niftiSUV` allows to convert a PET DICOM image to a NIFTI image with SUV values. The SUV values are computed using the corresponding DICOM tags.

- bodyweight: "TBW" (total body weight) or "LBW" (lean body weight)

```python
def dicom2niftiSUV(dicomdir, niftiname,bodyweight="TBW"):
"""Convert a folder of dicom files to nifti files and apply SUV conversion.
Expand Down
1 change: 0 additions & 1 deletion src/imvis/nifti_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,5 +135,4 @@ def dicom2niftiSUV(dicomdir, niftiname,bodyweight="TBW"):
fname_out = "./samples/001_PT_resampled.nii.gz"
dicomdir = "./samples/OSEM i8s20 nopsf_407"
# resample_nifti_to(nifti_in, nifti_ref, fname_out, img_type='BQML')
dicom2niftiSUV(dicomdir, "./samples/converted_nifti_LBM.nii.gz", "LBW")

0 comments on commit b363e0e

Please sign in to comment.