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
158647d0
Commit
158647d0
authored
Mar 16, 2020
by
Alessia Marcolini
Browse files
Return superclass function return value
parent
7296d372
Changes
1
Hide whitespace changes
Inline
Side-by-side
pyradiomics_radler/myshape.py
View file @
158647d0
...
@@ -9,19 +9,19 @@ class MyRadiomicsShape(MyRadiomicsFeaturesBase):
...
@@ -9,19 +9,19 @@ class MyRadiomicsShape(MyRadiomicsFeaturesBase):
super
().
__init__
(
inputImage
,
inputMask
,
**
kwargs
)
super
().
__init__
(
inputImage
,
inputMask
,
**
kwargs
)
def
_initVoxelBasedCalculation
(
self
):
def
_initVoxelBasedCalculation
(
self
):
RadiomicsShape
.
_initVoxelBasedCalculation
(
self
)
return
RadiomicsShape
.
_initVoxelBasedCalculation
(
self
)
def
_initSegmentBasedCalculation
(
self
):
def
_initSegmentBasedCalculation
(
self
):
RadiomicsShape
.
_initSegmentBasedCalculation
(
self
)
return
RadiomicsShape
.
_initSegmentBasedCalculation
(
self
)
def
_calculateSurfaceArea
(
self
):
def
_calculateSurfaceArea
(
self
):
self
.
SurfaceArea
=
RadiomicsShape
.
_calculateSurfaceArea
(
self
)
return
RadiomicsShape
.
_calculateSurfaceArea
(
self
)
def
calculateDiameters
(
self
):
def
calculateDiameters
(
self
):
RadiomicsShape
.
calculateDiameters
(
self
)
return
RadiomicsShape
.
calculateDiameters
(
self
)
def
_interpolate
(
self
,
grid
,
p1
,
p2
):
def
_interpolate
(
self
,
grid
,
p1
,
p2
):
RadiomicsShape
.
_interpolate
(
self
,
grid
,
p1
,
p2
)
return
RadiomicsShape
.
_interpolate
(
self
,
grid
,
p1
,
p2
)
def
getCompactness2FeatureValue
(
self
):
def
getCompactness2FeatureValue
(
self
):
r
"""
r
"""
...
@@ -43,7 +43,7 @@ class MyRadiomicsShape(MyRadiomicsFeaturesBase):
...
@@ -43,7 +43,7 @@ class MyRadiomicsShape(MyRadiomicsFeaturesBase):
specified, including this feature). To include this feature in the extraction, specify it by name in the enabled features.
specified, including this feature). To include this feature in the extraction, specify it by name in the enabled features.
"""
"""
if
self
.
SurfaceArea
is
None
:
if
self
.
SurfaceArea
is
None
:
self
.
_calculateSurfaceArea
()
self
.
SurfaceArea
=
self
.
_calculateSurfaceArea
()
return
(
36.0
*
numpy
.
pi
)
*
(
self
.
Volume
**
2.0
)
/
(
self
.
SurfaceArea
**
3.0
)
return
(
36.0
*
numpy
.
pi
)
*
(
self
.
Volume
**
2.0
)
/
(
self
.
SurfaceArea
**
3.0
)
def
getEccentricityFeatureValue
(
self
):
def
getEccentricityFeatureValue
(
self
):
...
...
Write
Preview
Supports
Markdown
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