aadd7d651389f213aaf33b08ab6f533a3ecc59db,cellprofiler/modules/correctilluminationcalculate.py,CorrectIlluminationCalculate,apply_scaling,#CorrectIlluminationCalculate#Any#Any#,711
Before Change
if self.rescale_option == cps.NO:
return image
pixel_data = image.pixel_data
if image.has_mask:
sorted_pixel_data = pixel_data[np.logical_and(pixel_data>0,
image.mask)]
else:
sorted_pixel_data = pixel_data[pixel_data > 0]
if sorted_pixel_data.shape[0] == 0:
After Change
if robust_minimum == 0:
return pixel_data
return pixel_data / robust_minimum
if image.pixel_data.ndim == 2:
output_pixels = scaling_fn_2d(image.pixel_data)
else:
output_pixels = np.dstack([
scaling_fn_2d(x) for x in image.pixel_data.transpose(2, 0, 1)])
output_image = cpi.Image(output_pixels, parent_image = orig_image)
return output_image
def validate_module(self, pipeline):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: CellProfiler/CellProfiler
Commit Name: aadd7d651389f213aaf33b08ab6f533a3ecc59db
Time: 2011-08-04
Author: leek@1fc53939-2000-0410-845c-e8453a809027
File Name: cellprofiler/modules/correctilluminationcalculate.py
Class Name: CorrectIlluminationCalculate
Method Name: apply_scaling
Project Name: bethgelab/foolbox
Commit Name: 80cfb0e5f889c65a972ebde6c6dae4278b5e28c1
Time: 2020-02-14
Author: git@jonasrauber.de
File Name: foolbox/attacks/base.py
Class Name: MinimizationAttack
Method Name: __call__
Project Name: tensorflow/models
Commit Name: 6cd426d917d10f3f334cb009d12db527ef81750f
Time: 2019-10-17
Author: jingli@google.com
File Name: official/nlp/xlnet/data_utils.py
Class Name:
Method Name: _local_perm