Mercurial > forge
changeset 11220:f071ba771468 octave-forge
im2bw: fix tests
author | carandraug |
---|---|
date | Thu, 08 Nov 2012 16:29:38 +0000 |
parents | 2427efc9c2fc |
children | 5c65f18d6d02 |
files | main/image/inst/im2bw.m |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/main/image/inst/im2bw.m Thu Nov 08 16:12:00 2012 +0000 +++ b/main/image/inst/im2bw.m Thu Nov 08 16:29:38 2012 +0000 @@ -84,5 +84,5 @@ BW = (img > thres); # matlab compatible (not "greater than or equal") endfunction -%!assert(im2bw ([0 0.4 0.5 0.6 1], 0.5), [0 0 0 1 1]); # basic usage -%!assert(im2bw (uint8 ([0 100 255], 0.5)), [0 0 1]); # with a uint8 input +%!assert(im2bw ([0 0.4 0.5 0.6 1], 0.5), logical([0 0 0 1 1])); # basic usage +%!assert(im2bw (uint8 ([0 100 255]), 0.5), logical([0 0 1])); # with a uint8 input