a4804a43925bfa0fb58935344adfdd862a6ec889,skimage/filters/thresholding.py,,_mean_std,#Any#Any#,727

Before Change



    // Pad left and top of Integral image with zeros
    I = np.vstack((np.zeros((1, I.shape[1]), I.dtype), I))
    I = np.hstack((np.zeros((I.shape[0], 1), I.dtype), I))

    kern = np.zeros((w + 1, w + 1))
    kern[0, 0], kern[-1, -1] = 1, 1
    kern[[0, -1], [-1, 0]] = -1

After Change


    g = image.astype(np.float)
    sum_g2 = ndi.convolve(g ** 2., np.ones((w, w)), mode="constant")
    sum_m2 = w2 * m ** 2.
    s = np.sqrt((sum_g2 - sum_m2) / w2)
    return m, s


def threshold_niblack(image, window_size=15, k=0.2):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: scikit-image/scikit-image
Commit Name: a4804a43925bfa0fb58935344adfdd862a6ec889
Time: 2016-12-25
Author: devel@sciunto.org
File Name: skimage/filters/thresholding.py
Class Name:
Method Name: _mean_std


Project Name: SheffieldML/GPy
Commit Name: f1e3cfaed0d27d697cdcb8c461662561aa9a4bd4
Time: 2013-05-02
Author: acq11ra@sheffield.ac.uk
File Name: GPy/likelihoods/likelihood_functions.py
Class Name: probit
Method Name: predictive_values


Project Name: NifTK/NiftyNet
Commit Name: 369afab10deee16ef572c738df083d2e74863e64
Time: 2017-08-27
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/application/toy_application.py
Class Name: ToyApplication
Method Name: connect_data_and_network