404a8aa3629103140b364ebc69a80f7271af0f04,cellprofiler/modules/rescaleintensity.py,RescaleIntensity,manual_input_range,#RescaleIntensity#Any#Any#,351
Before Change
def manual_input_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 = (0.0, 1.0)
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 manual_io_range(self, input_image, workspace):
After Change
def manual_input_range(self, input_image, workspace):
in_range = self.get_source_range(input_image, workspace)
return self.rescale(input_image, in_range)
def manual_io_range(self, input_image, workspace):
in_range = self.get_source_range(input_image, workspace)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
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_input_range
Project Name: AlexEMG/DeepLabCut
Commit Name: b76be665a3f54c16182567e20046958e90d0c391
Time: 2020-08-19
Author: 30733203+jeylau@users.noreply.github.com
File Name: deeplabcut/utils/auxfun_videos.py
Class Name:
Method Name: DownSampleVideo
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