54bf5e9f9daf14d281483ad0dbafcf36f44f5ed6,skimage/restoration/non_local_means.py,,denoise_nl_means,#,9

Before Change


            return np.squeeze(
                np.asarray(_fast_nl_means_denoising_2d(image, **nlm_kwargs)))
        else:
            return np.squeeze(
                np.asarray(_nl_means_denoising_2d(image, **nlm_kwargs)))
    else:  // 3-D grayscale
        if fast_mode:
            return np.asarray(_fast_nl_means_denoising_3d(image, **nlm_kwargs))
        else:

After Change


        raise NotImplementedError("Non-local means denoising is only \
        implemented for 2D grayscale and RGB images or 3-D grayscale images.")

    if preserve_range is None and np.issubdtype(image.dtype, np.integer):
        warn("Image dtype is not float. By default denoise_nl_means will "
             "assume you want to preserve the range of your image "
             "(preserve_range=True). In scikit-image 0.19 this behavior will "
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: scikit-image/scikit-image
Commit Name: 54bf5e9f9daf14d281483ad0dbafcf36f44f5ed6
Time: 2020-02-11
Author: rfezzani@gmail.com
File Name: skimage/restoration/non_local_means.py
Class Name:
Method Name: denoise_nl_means


Project Name: hmmlearn/hmmlearn
Commit Name: e6950084bbf5671b047046738b9f5e52ee9ed715
Time: 2018-10-23
Author: anntzer.lee@gmail.com
File Name: lib/hmmlearn/hmm.py
Class Name: MultinomialHMM
Method Name: _check_input_symbols


Project Name: scikit-image/scikit-image
Commit Name: 77a6afa82d7f09135487a9e1f7cb602bbedf33c8
Time: 2020-01-13
Author: alrightalrightalright100@gmail.com
File Name: skimage/filters/_gaussian.py
Class Name:
Method Name: gaussian


Project Name: scikit-image/scikit-image
Commit Name: 54bf5e9f9daf14d281483ad0dbafcf36f44f5ed6
Time: 2020-02-11
Author: rfezzani@gmail.com
File Name: skimage/restoration/non_local_means.py
Class Name:
Method Name: denoise_nl_means