Mercurial > hg > octave-image
changeset 841:d197c65d85c6
private/isimage.m: add check that an image must be a numeric or logical matrix.
author | Carnë Draug <carandraug@octave.org> |
---|---|
date | Wed, 13 Nov 2013 04:29:46 +0000 |
parents | 6b438c5acfbb |
children | 006ab95a7e07 |
files | inst/private/isimage.m |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/inst/private/isimage.m +++ b/inst/private/isimage.m @@ -17,5 +17,6 @@ ## It simply checks if the input really is an image. function retval = isimage (img) - retval = (ismatrix (img) && !issparse (img) && !isempty (img) && isreal (img)); + retval = (ismatrix (img) && ! issparse (img) && ! isempty (img) && + isreal (img) && (isnumeric (img) || islogical (img))); endfunction