- self.__CumulHisto.append(int(histo.GetScalarComponentAsFloat(0,0,0,0)))
+ self.__CumulHisto.append(int(histo.GetScalarComponentAsDouble(0,0,0,0)))
- value = int(histo.GetScalarComponentAsFloat(i,0,0,0))
+ value = int(histo.GetScalarComponentAsDouble(i,0,0,0))
self.__CumulHisto.append( self.__CumulHisto[i-1] + value)
def GetTruncateLevels(self, LostPercentage):
self.__CumulHisto.append( self.__CumulHisto[i-1] + value)
def GetTruncateLevels(self, LostPercentage):
print "The ", FileName, " file is not "
print " readable with gdcm. Sorry."
sys.exit()
print "The ", FileName, " file is not "
print " readable with gdcm. Sorry."
sys.exit()