Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image-based Bone Marrow dosimetry #46

Merged
merged 3 commits into from
Sep 11, 2024
Merged

Conversation

plesqui
Copy link
Collaborator

@plesqui plesqui commented May 26, 2024

This PR brings support to calculate bone-marrow dose directly from quantitative SPECT images. This method leverages the bone-marrow distribution (i.e., the mask) obtained from an adult, male, XCAT phantom. This mask is registered to the patient's anatomy at each time point by mapping first the XCAT phantom skeleton to the patient's skeleton, and subsequently applying this transformation into the XCAT phantom bone-marrow mask.

In order to obtain the bone-marrow mask and add it to the longitudinal CT and SPECT study, please add the following code snippet after instantiating both studies:

# Generate Bone Marrow Mask on CT
longCTAC.add_bone_marrow_mask_from_phantom(phantom_skeleton_path="../data/phantom/skeleton/Skeleton.nii.gz",
                                           phantom_bone_marrow_path="../data/phantom/bone_marrow/Marrow.nii.gz")



# Copy Bone-Marrow masks from CT to NM:
from copy import deepcopy
for time_id, _ in enumerate(time_points):
    longSPECT.add_masks_to_time_point(time_id=time_id, masks={"BoneMarrow": deepcopy(longCTAC.masks[time_id]["BoneMarrow"])})

Copy link
Collaborator

@carluri carluri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have reviewed the suggested edits and agree that they are suitable for the image-based bone marrow dosimetry task

@carluri carluri merged commit d593928 into dev Sep 11, 2024
@carluri carluri deleted the plef-bone-marrow-image-based branch September 11, 2024 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants