54887fd542d79b2642c972ec9e2bba2f2074e685,cellprofiler/modules/rescaleintensity.py,RescaleIntensity,divide_by_image_maximum,#RescaleIntensity#Any#,370

Before Change


            src_max = numpy.max(input_image.pixel_data[input_image.mask])
        else:
            src_max = numpy.max(input_image.pixel_data)
        if src_max != 0:
            rescaled_image = input_image.pixel_data / src_max
        return rescaled_image

    def divide_by_value(self, input_image):
        """Divide the image by a user-specified value"""
        return input_image.pixel_data / self.divisor_value.value

After Change



        src_max = numpy.max(data[input_image.mask])

        return self.divide(data, src_max)

    def divide_by_value(self, input_image):
        return self.divide(input_image.pixel_data, self.divisor_value.value)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: CellProfiler/CellProfiler
Commit Name: 54887fd542d79b2642c972ec9e2bba2f2074e685
Time: 2016-12-01
Author: mcquin@broadinstitute.org
File Name: cellprofiler/modules/rescaleintensity.py
Class Name: RescaleIntensity
Method Name: divide_by_image_maximum


Project Name: CellProfiler/CellProfiler
Commit Name: 54887fd542d79b2642c972ec9e2bba2f2074e685
Time: 2016-12-01
Author: mcquin@broadinstitute.org
File Name: cellprofiler/modules/rescaleintensity.py
Class Name: RescaleIntensity
Method Name: divide_by_image_minimum


Project Name: pgmpy/pgmpy
Commit Name: 0ff5063d229ec9b98dea88d9e0d096bb63870b9a
Time: 2015-08-21
Author: ankurankan@gmail.com
File Name: pgmpy/factors/FactorSet.py
Class Name:
Method Name: factorset_divide