Mercurial > hg > octave-image
changeset 667:8b7cd6e22704
im2bw: fix tests
author | carandraug |
---|---|
date | Thu, 08 Nov 2012 16:29:38 +0000 |
parents | 6a6fd68f0aae |
children | 7b6b493d66b5 |
files | inst/im2bw.m |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/inst/im2bw.m +++ b/inst/im2bw.m @@ -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