Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
MPBA Radiomics
RADLER
Commits
5276bb54
Commit
5276bb54
authored
Mar 17, 2020
by
Alessia Marcolini
Browse files
Add gETU feature
parent
67f4f876
Changes
1
Hide whitespace changes
Inline
Side-by-side
pyradiomics_radler/myfirstorder.py
View file @
5276bb54
...
@@ -126,3 +126,25 @@ class MyRadiomicsFirstOrder(MyRadiomicsFeaturesBase):
...
@@ -126,3 +126,25 @@ class MyRadiomicsFirstOrder(MyRadiomicsFeaturesBase):
csh
=
numpy
.
flipud
(
numpy
.
cumsum
(
numpy
.
flipud
(
bins
))
/
nVoxel
)
csh
=
numpy
.
flipud
(
numpy
.
cumsum
(
numpy
.
flipud
(
bins
))
/
nVoxel
)
return
numpy
.
sum
(
csh
/
nBins
)
return
numpy
.
sum
(
csh
/
nBins
)
def
getgETUFeatureValue
(
self
):
r
"""
**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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment