autods_pet.roi.target_roi#
Target ROI: compute PET statistics from a user-provided binary mask.
Works for any target ROI (focal lesion, paramedullary, extramedullary, or custom targets). No refinement step - the mask is provided externally.
- class autods_pet.roi.target_roi.TargetROI(stats=None)[source]#
Bases:
objectTarget ROI statistics from a user-provided binary mask.
- Parameters:
stats (
list[str] |None(default:None)) – Statistics to compute (e.g.["max", "p90"]). Defaults to["max"].
- extract(mask, pet)[source]#
Extract statistics from PET within a user-provided binary mask.
- Parameters:
mask (
Image) – Binary mask selecting the target voxels.pet (
Image) – PET SUV image (must share geometry with mask).
- Returns:
Result with
statsandrefined_maskpopulated.- Return type:
- Raises:
ValueError – If mask and pet have mismatched geometry.