bbe15496db3bd99d8795630056734f55775e47fb,cellprofiler/modules/measureimagequality.py,MeasureImageQuality,calculate_power_spectrum,#MeasureImageQuality#Any#Any#,1053
Before Change
if sum(magnitude) > 0 and len(np.unique(pixel_data)) > 1:
valid = (magnitude > 0)
radii = radii[valid].reshape((-1, 1))
magnitude = magnitude[valid].reshape((-1, 1))
power = power[valid].reshape((-1, 1))
if radii.shape[0] > 1:
idx = np.isfinite(np.log(power))
powerslope = \
After Change
workspace.add_measurement(cellprofiler.measurement.IMAGE,
"{}_{}_{}".format(C_IMAGE_QUALITY, F_POWER_SPECTRUM_SLOPE, image_name),
powerslope)
result += [["{} {}".format(image_name, F_POWER_SPECTRUM_SLOPE), "{:.1f}".format(float(powerslope))]]
return result
def calculate_thresholds(self, image_group, workspace):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: CellProfiler/CellProfiler
Commit Name: bbe15496db3bd99d8795630056734f55775e47fb
Time: 2018-02-08
Author: bowdenm@spu.edu
File Name: cellprofiler/modules/measureimagequality.py
Class Name: MeasureImageQuality
Method Name: calculate_power_spectrum
Project Name: librosa/librosa
Commit Name: 1cdfcfa8a884ffb5f670812ee4b528a76f367be9
Time: 2016-05-07
Author: brian.mcfee@nyu.edu
File Name: librosa/core/constantq.py
Class Name:
Method Name: __fft_filters
Project Name: PyMVPA/PyMVPA
Commit Name: 226340622c3c9f6108d6efbed2f9967e2679802e
Time: 2009-04-19
Author: psederberg@gmail.com
File Name: mvpa/clfs/glmnet.py
Class Name: GLMNET
Method Name: _predict