# HG changeset patch # User carandraug # Date 1352392178 0 # Node ID f071ba771468976a94041be340f3e2a82aacbb64 # Parent 2427efc9c2fc46d9b91c70a403b5b4f3eb729fb2 im2bw: fix tests diff -r 2427efc9c2fc -r f071ba771468 main/image/inst/im2bw.m --- 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