57ebf9c998406a77dc758bb7781dbe290a6ba586,cellprofiler/modules/gammacorrection.py,GammaCorrection,run,#GammaCorrection#Any#,60
Before Change
]
def run(self, workspace):
x_name = self.x_name.value
y_name = self.y_name.value
gamma = self.gamma.value
gain = self.gain.value
images = workspace.image_set
x = images.get_image(x_name)
dimensions = x.dimensions
x_data = x.pixel_data
y_data = skimage.exposure.adjust_gamma(x_data, gamma, gain)
y = cellprofiler.image.Image(
dimensions=dimensions,
image=y_data,
parent_image=x
)
images.add(y_name, y)
if self.show_window:
workspace.display_data.x_data = x_data
workspace.display_data.y_data = y_data
workspace.display_data.dimensions = dimensions
def display(self, workspace, figure):
layout = (2, 1)
figure.set_subplots(
After Change
]
def run(self, workspace):
self.function = skimage.exposure.adjust_gamma
super(GammaCorrection, self).run(workspace)
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 40
Instances
Project Name: CellProfiler/CellProfiler
Commit Name: 57ebf9c998406a77dc758bb7781dbe290a6ba586
Time: 2016-09-21
Author: allen.goodman@icloud.com
File Name: cellprofiler/modules/gammacorrection.py
Class Name: GammaCorrection
Method Name: run
Project Name: CellProfiler/CellProfiler
Commit Name: fdcab94f70b6fcea78e55a4baf5508a0a175a8a9
Time: 2016-10-31
Author: allen.goodman@icloud.com
File Name: cellprofiler/modules/erosion.py
Class Name: Erosion
Method Name: run
Project Name: CellProfiler/CellProfiler
Commit Name: 57ebf9c998406a77dc758bb7781dbe290a6ba586
Time: 2016-09-21
Author: allen.goodman@icloud.com
File Name: cellprofiler/modules/gammacorrection.py
Class Name: GammaCorrection
Method Name: run
Project Name: CellProfiler/CellProfiler
Commit Name: fdcab94f70b6fcea78e55a4baf5508a0a175a8a9
Time: 2016-10-31
Author: allen.goodman@icloud.com
File Name: cellprofiler/modules/opening.py
Class Name: Opening
Method Name: run
Project Name: CellProfiler/CellProfiler
Commit Name: fdcab94f70b6fcea78e55a4baf5508a0a175a8a9
Time: 2016-10-31
Author: allen.goodman@icloud.com
File Name: cellprofiler/modules/closing.py
Class Name: Closing
Method Name: run
Project Name: CellProfiler/CellProfiler
Commit Name: fdcab94f70b6fcea78e55a4baf5508a0a175a8a9
Time: 2016-10-31
Author: allen.goodman@icloud.com
File Name: cellprofiler/modules/dilation.py
Class Name: Dilation
Method Name: run