Mercurial > hg > octave-nkf
changeset 17710:3dec0a57ab55
gray2ind.m: Enable handling of ND images.
* scripts/image/gray2ind.m: Remove input validation test than ndims == 2.
author | Adam H Aitkenhead <adamhaitkenhead@gmail.com> |
---|---|
date | Fri, 12 Apr 2013 20:10:32 +0100 |
parents | 5415a9cd61d4 |
children | 9ccb48d39ce9 |
files | scripts/image/gray2ind.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/image/gray2ind.m +++ b/scripts/image/gray2ind.m @@ -45,7 +45,7 @@ error ("gray2ind: I must be a grayscale or binary image"); elseif (! isscalar (n) || n < 1 || n > 65536) error ("gray2ind: N must be a positive integer in the range [1, 65536]"); - elseif (! ismatrix (I) || ndims (I) != 2) + elseif (! ismatrix (I) || ndims (I) < 2) error ("gray2ind: I must be a grayscale or binary image"); endif