Mercurial > hg > octave-image
changeset 633:e91300883c6e
graythresh: bugfix when checking if input is histogram
author | carandraug |
---|---|
date | Sun, 30 Sep 2012 16:56:32 +0000 |
parents | d874709a9a27 |
children | 7ac49409be86 |
files | inst/graythresh.m |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/inst/graythresh.m +++ b/inst/graythresh.m @@ -159,9 +159,9 @@ img = rgb2gray (img); elseif (isgray (img)) ## do nothing - elseif (isvector (img) && !issparse (img) && isreal (img) && any (img < 0)) + elseif (isvector (img) && !issparse (img) && isreal (img) && all (img >= 0)) hist_in = true; - ihist = img; + ihist = img; else error ("graythresh: input must be an image or an histogram."); endif