diff --git a/skimage/exposure/_adapthist.py b/skimage/exposure/_adapthist.py index ff144700..57541de1 100644 --- a/skimage/exposure/_adapthist.py +++ b/skimage/exposure/_adapthist.py @@ -59,6 +59,11 @@ def adapthist(image, ntiles_x=8, ntiles_y=8, clip_limit=0.01, nbins=256): * The algorithm relies on an image whose rows and columns are even multiples of the number of tiles, so the extra rows and columns are left at their original values, thus preserving the input image shape. +<<<<<<< HEAD +======= + * For grayscale images, CLAHE is performed on one channel, + and a grayscale is returned +>>>>>>> 2e1729a9fbbc21fc0b04df8e68efbab9cfd6dada * For color images, the following steps are performed: - The image is converted to LAB color space - The CLAHE algorithm is run on the L channel @@ -319,3 +324,4 @@ def interpolate(image, xslice, yslice, / norm) view[:, :] = new return image + diff --git a/skimage/exposure/tests/test_exposure.py b/skimage/exposure/tests/test_exposure.py index 91b15b09..17206d1b 100644 --- a/skimage/exposure/tests/test_exposure.py +++ b/skimage/exposure/tests/test_exposure.py @@ -82,7 +82,7 @@ def test_adapthist_scalar(): ''' img = skimage.img_as_ubyte(data.moon()) adapted = exposure.adapthist(img, clip_limit=0.02) - assert adapted.min() == 0 + assert adapted.min() == 0= assert adapted.max() == (1 << 16) - 1 assert img.shape == adapted.shape full_scale = skimage.exposure.rescale_intensity(skimage.img_as_uint(img))