changeset 572:b12b120ecbc1

isbw: fix bug when input image has more than 2D.
author carandraug
date Sun, 02 Sep 2012 02:33:14 +0000
parents d8ad8f768386
children 9a6addcc1c55
files inst/isbw.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/inst/isbw.m
+++ b/inst/isbw.m
@@ -62,7 +62,7 @@
 endfunction
 
 function bool = is_bw_nonlogical (BW)
-  bool = all (all ((BW == 1) + (BW == 0)));
+  bool = all ((BW == 1)(:) + (BW == 0)(:));
 endfunction
 
 %!shared a