Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
MPBA Radiomics
RADLER
Commits
93bf9547
Commit
93bf9547
authored
Mar 16, 2020
by
Alessia Marcolini
Browse files
Add TLG feature for PET modality
parent
158647d0
Changes
1
Show whitespace changes
Inline
Side-by-side
pyradiomics_radler/myfirstorder.py
View file @
93bf9547
...
...
@@ -64,3 +64,29 @@ class MyRadiomicsFirstOrder(MyRadiomicsFeaturesBase):
return
numpy
.
mean
(
ROIPet
[
~
numpy
.
isnan
(
ROIPet
)])
def
getTLGFeatureValue
(
self
):
r
"""
**21. TLG**
Total lesion glycolysis.
Defined as
.. math::
\textit{SUVMean}\times \textit{total volume of the tumour region}
- 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.
"""
z
,
y
,
x
=
self
.
pixelSpacing
Np
=
len
(
self
.
labelledVoxelCoordinates
[
0
])
volume
=
Np
*
(
z
*
x
*
y
)
ROIPet
=
self
.
imageArray
mask
=
self
.
maskArray
ROIPet
[
~
mask
]
=
numpy
.
nan
return
numpy
.
mean
(
ROIPet
[
~
numpy
.
isnan
(
ROIPet
)])
*
volume
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