def normalizePotential(self, weights):
        #TODO: this , until now, only supports gray scale and 2D!
        min = numpy.min(weights)
        max = numpy.max(weights)
        weights = (weights - min)+(255.0 / (max - min))

        data = numpy.ndarray(weights.shape, 'float32')
        data[:] = weights[:]
        return data
dataset/ETHPy150Open ilastik/ilastik-0.5/ilastik/modules/automatic_segmentation/core/automaticSegmentationMgr.py/AutomaticSegmentationModuleMgr.normalizePotential/operator `*` -> `+`