Mercurial > forge
changeset 10943:cb896ed1c05b octave-forge
isgray: return true for int16 class
author | carandraug |
---|---|
date | Wed, 26 Sep 2012 06:51:51 +0000 |
parents | 5ec4977498d2 |
children | 263fffb0c43a |
files | main/image/NEWS main/image/inst/isgray.m |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/main/image/NEWS Wed Sep 26 05:46:40 2012 +0000 +++ b/main/image/NEWS Wed Sep 26 06:51:51 2012 +0000 @@ -78,6 +78,8 @@ used as input, `isbw' will still return true but a warning will be issued since this will deprecated later. + ** `isgray' now also returns true for matrices of the int16 class. + ** `isrgb' now returns false for logical matrix. ** `tiff_tag_read' had several bug fixes and can now check IFDs beyond
--- a/main/image/inst/isgray.m Wed Sep 26 05:46:40 2012 +0000 +++ b/main/image/inst/isgray.m Wed Sep 26 06:51:51 2012 +0000 @@ -22,7 +22,7 @@ ## non-sparse matrix, and: ## @itemize @bullet ## @item is of class double and all values are in the range [0, 1]; -## @item is of class uint8 or uint16. +## @item is of class uint8, uint16 or int16. ## @end itemize ## ## Note that grayscale time-series image have 4 dimensions (NxMx1xtime) but @@ -44,7 +44,7 @@ switch (class (img)) case "double" bool = ispart (@is_double_image, img); - case {"uint8", "uint16"} + case {"uint8", "uint16", "int16"} bool = true; endswitch endif