Mercurial > hg > octave-image
changeset 679:03f276db6384
Remove check for logical matrices in bwlabel to match bwlabeln
author | jordigh |
---|---|
date | Thu, 22 Nov 2012 16:20:26 +0000 |
parents | 9faca2f95280 |
children | 64af90213060 |
files | src/bwlabel.cc |
diffstat | 1 files changed, 1 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/bwlabel.cc +++ b/src/bwlabel.cc @@ -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 ();