diff --git a/skimage/transform/integral.py b/skimage/transform/integral.py index 096a8ade..da07f9f6 100644 --- a/skimage/transform/integral.py +++ b/skimage/transform/integral.py @@ -1,6 +1,6 @@ import numpy as np import collections - +import warnings def integral_image(img): """Integral image / summed area table. @@ -82,6 +82,10 @@ def integrate(ii, start, end, *args): end = np.array(end) # handle deprecated input format else: + warnings.warn("The syntax 'integrate(ii, r0, c0, r1, c1)' is " + "deprecated, and will be phased out in release 0.14. " + "The new syntax is " + "'integrate(ii, [(r0, c0)], [(r1, c1)])'.") if isinstance(start, collections.Iterable): rows = len(start) args = (start, end) + args