c890a06b4ef71d5827ff9a399e203a37af0191a5,skimage/exposure/exposure.py,,_bincount_histogram,#Any#Any#,38
Before Change
elif source_range == "dtype":
image_min, image_max = dtype_limits(image, clip_negative=False)
image, offset = _offset_array(image, image_min, image_max)
hist = np.bincount(image)
bin_centers = np.arange(image_min, image_max + 1)
// Add zeros at the end of the hist array to get the correct size
zero_hist = np.zeros(image_max - image_min - hist.shape[0] + 1)
hist = np.concatenate((hist, zero_hist))
After Change
elif source_range == "dtype":
image_min, image_max = dtype_limits(image, clip_negative=False)
image, offset = _offset_array(image, image_min, image_max)
hist = np.bincount(image.ravel(), minlength=image_max - image_min + 1)
bin_centers = np.arange(image_min, image_max + 1)
if source_range == "image":
idx = max(image_min, 0)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: scikit-image/scikit-image
Commit Name: c890a06b4ef71d5827ff9a399e203a37af0191a5
Time: 2018-12-06
Author: devel@sciunto.org
File Name: skimage/exposure/exposure.py
Class Name:
Method Name: _bincount_histogram
Project Name: ilastik/ilastik
Commit Name: 8c09961e7e0a360a0c27d63cd6ae93f5385018f8
Time: 2016-02-08
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/thresholdTwoLevels/ipht.py
Class Name:
Method Name: filter_labels
Project Name: ilastik/ilastik
Commit Name: de807f39aed300bc07e1eb76d39a2c68838298ab
Time: 2016-02-08
Author: bergs@janelia.hhmi.org
File Name: lazyflow/operators/opFilterLabels.py
Class Name:
Method Name: remove_wrongly_sized_connected_components