From: <ha...@us...> - 2008-04-25 14:51:17
|
Revision: 4987 http://octave.svn.sourceforge.net/octave/?rev=4987&view=rev Author: hauberg Date: 2008-04-25 07:51:21 -0700 (Fri, 25 Apr 2008) Log Message: ----------- use 8-neighours because ML does Modified Paths: -------------- trunk/octave-forge/main/image/src/bwlabel.cc Modified: trunk/octave-forge/main/image/src/bwlabel.cc =================================================================== --- trunk/octave-forge/main/image/src/bwlabel.cc 2008-04-25 11:33:44 UTC (rev 4986) +++ trunk/octave-forge/main/image/src/bwlabel.cc 2008-04-25 14:51:21 UTC (rev 4987) @@ -54,7 +54,7 @@ The total number of objects is @var{num}.\n\ \n\ To pixels belong to the same object if the are neighbors. By default\n\ -the algorithm uses 6-connectivity to define a neighborhood, but this\n\ +the algorithm uses 8-connectivity to define a neighborhood, but this\n\ can be changed through the argument @var{n} that can be either 4, 6, or 8.\n\ \n\ The algorithm is derived from BKP Horn, Robot Vision, MIT Press,\n\ @@ -68,7 +68,7 @@ // input arguments Matrix BW = args(0).matrix_value(); // the input binary image int n; - if ( args.length() < 2 ) n = 6; // n-hood connectivity + if ( args.length() < 2 ) n = 8; // n-hood connectivity else n = args(1).int_value(); int nr = args(0).rows(); int nc = args(0).columns(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |