changeset 10756:42c5130baae2 octave-forge

isbw: fix bug when input image has more than 2D.
author carandraug
date Sun, 02 Sep 2012 02:33:14 +0000
parents 996fadda47e4
children 902a9fdaf948
files main/image/inst/isbw.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/main/image/inst/isbw.m	Sun Sep 02 02:31:53 2012 +0000
+++ b/main/image/inst/isbw.m	Sun Sep 02 02:33:14 2012 +0000
@@ -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