Skip to content

Commit

Permalink
BUG: Fix error in general info generation (image elements)
Browse files Browse the repository at this point in the history
Min and max were reversed.
  • Loading branch information
JoostJM committed Sep 12, 2018
1 parent e4eaf85 commit 7d919cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions radiomics/generalinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ def addImageElements(self, image, prefix='original'):
self.generalInfo[self.generalInfo_prefix + prefix + 'Size'] = image.GetSize()
im_arr = sitk.GetArrayFromImage(image)
self.generalInfo[self.generalInfo_prefix + prefix + 'Mean'] = numpy.mean(im_arr)
self.generalInfo[self.generalInfo_prefix + prefix + 'Minimum'] = numpy.max(im_arr)
self.generalInfo[self.generalInfo_prefix + prefix + 'Maximum'] = numpy.min(im_arr)
self.generalInfo[self.generalInfo_prefix + prefix + 'Minimum'] = numpy.min(im_arr)
self.generalInfo[self.generalInfo_prefix + prefix + 'Maximum'] = numpy.max(im_arr)

def addMaskElements(self, image, mask, label, prefix='original'):
"""
Expand Down

0 comments on commit 7d919cf

Please sign in to comment.