Mercurial > forge
changeset 11260:525d72fc3135 octave-forge
Remove check for logical matrices in bwlabel to match bwlabeln
author | jordigh |
---|---|
date | Thu, 22 Nov 2012 16:20:26 +0000 |
parents | 6a4719ed5eb4 |
children | 3da1230d1959 |
files | main/image/src/bwlabel.cc |
diffstat | 1 files changed, 1 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/main/image/src/bwlabel.cc Thu Nov 22 00:14:33 2012 +0000 +++ b/main/image/src/bwlabel.cc Thu Nov 22 16:20:26 2012 +0000 @@ -35,12 +35,6 @@ return true; } - if (!args (0).is_bool_matrix ()) - { - error ("bwlabel: first input argument must be a 'logical' matrix"); - return true; - } - if (nargin == 2) { if (!args (1).is_real_scalar ()) @@ -82,7 +76,7 @@ return rval; // input arguments - boolMatrix BW = args (0).bool_matrix_value (); // the input binary image + boolMatrix BW = args (0).bool_array_value (); // the input binary image int nr = BW.rows (); int nc = BW.columns ();