Skip to content

Commit

Permalink
update documentation of method to calculated rod ROIs
Browse files Browse the repository at this point in the history
  • Loading branch information
gschramm committed Mar 21, 2022
1 parent 888abc1 commit a2ea86c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 5 additions & 3 deletions pynemaiqpet/nema_smallanimal.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,11 @@ def nema_2008_small_animal_pet_rois(vol, voxsize, lp_voxel = 'max', rod_th = 0.1
containing the voxel size
lp_voxel: string, optional
method of how to compute the pixel used to draw the line profiles
in the rods. 'max' means the maximum voxels in the summed 2D image.
anything else means use the center of mass.
method of how to compute the ROIs around the line profiles
in the summed images of the hot rods.
'max' means the maximum voxels in the summed 2D image.
anything else means use all pixels that are within the rod radius
around the center of mass
rod_th : float, optional
threshold to find the rod in the summed 2D image relative to the
Expand Down
4 changes: 3 additions & 1 deletion scripts/analyze_small_animal.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
output_dir = Path('results')
# verbose output
verbose = True
# method for ROI to calculate recovery for hot rods (max or mean)
lp_voxel = 'mean'
#-----------------------------------------------------------------------------------------

if not output_dir.exists():
Expand Down Expand Up @@ -56,7 +58,7 @@
vol_aligned = nsa.align_nema_2008_small_animal_iq_phantom(vol, voxsize, version = phantom_name)

# generate the ROI label volume
roi_vol = nsa.nema_2008_small_animal_pet_rois(vol_aligned, voxsize, phantom = phantom_name)
roi_vol = nsa.nema_2008_small_animal_pet_rois(vol_aligned, voxsize, phantom = phantom_name, lp_voxel = lp_voxel)

# generate the report
res = nsa.nema_2008_small_animal_iq_phantom_report(vol_aligned, roi_vol)
Expand Down

0 comments on commit a2ea86c

Please sign in to comment.