Fixed database typo and removed unnecessary class identifier.

This commit is contained in:
Batuhan Berk Başoğlu 2020-10-14 10:10:37 -04:00
parent 00ad49a143
commit 45fb349a7d
5098 changed files with 952558 additions and 85 deletions

View file

@ -0,0 +1,25 @@
from warnings import warn
from ..exposure import match_histograms as mh
def match_histograms(image, reference, multichannel=False):
warn('DEPRECATED: skimage.transform.match_histograms has been moved to '
'skimage.exposure.match_histograms. It will be removed from '
'skimage.transform in version 0.18.', stacklevel=2)
return mh(image, reference, multichannel=False)
if mh.__doc__ is not None:
match_histograms.__doc__ = mh.__doc__ + """
Warns
-----
Deprecated:
.. versionadded:: 0.16
This function is deprecated and will be removed in scikit-image 0.18.
Please use ``match_histograms`` from ``exposure`` module instead.
See also
--------
skimage.exposure.match_histograms
"""