Skip to content

Commit

Permalink
Fix subclass name in custom feature example
Browse files Browse the repository at this point in the history
Plus some extra edits to clarify the example.
  • Loading branch information
pieper authored Apr 28, 2017
1 parent df82481 commit 9e1e847
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/developers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ the module a class should be defined that fits the following signature::
"""

def __init__(self, inputImage, inputMask, **kwargs):
super(RadiomicsGLCM, self).__init__(inputImage, inputMask, **kwargs)
super(Radiomics[Name], self).__init__(inputImage, inputMask, **kwargs)
# Feature class specific init

def get[Feature]FeatureValue(self):
"""
Feature docstring
"""

# value = feature calculation using member variables of RadiomicsFeatureBase and this class.
return [value]

* At the top should be the import statements for packages required by the feature class. Unused import statements should
Expand Down

0 comments on commit 9e1e847

Please sign in to comment.