404a8aa3629103140b364ebc69a80f7271af0f04,cellprofiler/modules/rescaleintensity.py,RescaleIntensity,manual_io_range,#RescaleIntensity#Any#Any#,371

Before Change


        return rescaled

    def manual_io_range(self, input_image, workspace):
        data = input_image.pixel_data

        mask = numpy.ones_like(data, dtype=numpy.bool)

        if input_image.has_mask:
            mask = input_image.mask

        in_range = self.get_source_range(input_image, workspace)

        out_range = (self.dest_scale.min, self.dest_scale.max)

        data[~mask] = 0

        rescaled = skimage.exposure.rescale_intensity(data, in_range=in_range, out_range=out_range)

        rescaled[~mask] = input_image.pixel_data[~mask]

        return rescaled

    def divide_by_image_minimum(self, input_image):
        """Divide the image by its minimum to get an illumination correction function"""

After Change



        out_range = (self.dest_scale.min, self.dest_scale.max)

        return self.rescale(input_image, in_range, out_range)

    def divide_by_image_minimum(self, input_image):
        """Divide the image by its minimum to get an illumination correction function"""
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 13

Instances


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


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


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


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