Skip to content

Commit

Permalink
Fix color check again
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Mar 8, 2015
1 parent aa52855 commit 59fbc8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skimage/exposure/exposure.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ def is_low_contrast(image, fraction_threshold=0.05, lower_percentile=1,
False
"""
image = np.asanyarray(image)
if image.ndim == 3 and image.shape[3] in [3, 4]:
if image.ndim == 3 and image.shape[2] in [3, 4]:
image = rgb2gray(image)

dlimits = dtype_limits(image)
Expand Down

0 comments on commit 59fbc8d

Please sign in to comment.