Commit 5276bb54 authored by Alessia Marcolini's avatar Alessia Marcolini
Browse files

Add gETU feature

parent 67f4f876
......@@ -126,3 +126,25 @@ class MyRadiomicsFirstOrder(MyRadiomicsFeaturesBase):
csh = numpy.flipud(numpy.cumsum(numpy.flipud(bins)) / nVoxel)
return numpy.sum(csh / nBins)
def getgETUFeatureValue(self):
**24. gETU**
Generalized effective total uptake, with parameter a = 0.25 as defined by Rahim et al.
- input: 3D array representing the PET volume in SUV format, with
voxels outside the ROI set to NaNs.
.. note::
Extracted from PET scans and not used in the CT feature set.
ROIPet = self.imageArray
mask = self.maskArray
ROIPet[~mask] = numpy.nan
a = 0.25
n_voxels = numpy.sum(ROIPet[~numpy.isnan(ROIPet)])
ROIPet = ROIPet ** a
return numpy.sum(ROIPet[~numpy.isnan(ROIPet)] / n_voxels) ** (1 / a)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment