changeset 437:578e8a22a921

Reverse rows and cols in call to __imboundary__
author hauberg
date Wed, 20 Oct 2010 20:56:29 +0000
parents f3e55bdcd78e
children fa2cb2a86509
files inst/bwboundaries.m
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/inst/bwboundaries.m
+++ b/inst/bwboundaries.m
@@ -64,9 +64,9 @@
   ## Warn if the user request more output arguments than our implementation supports
   if (nargout > 3)
 %    warning ("%s %s %s", ...
-%             "bwboundaries: adjacency matrix output is currently not supported." ...
-%             "Please contact the Octave-Forge community if you want to contribute" ...
-%s             "an implementation of this");
+%             "bwboundaries: adjacency matrix output is currently not supported. " ...
+%             "Please contact the Octave-Forge community if you want to contribute " ...
+%             "an implementation of this");
   endif
   
   ## Make sure 'bw' is logical
@@ -80,8 +80,8 @@
     [R, C] = find (segment);
     if (numel (R) > 1)
       ## XXX: support 8-neighbors
-      #B {n} = __imboundary__ (segment, N, R (1), C (1));
-      B {n} = __imboundary__ (segment, 4, R (1), C (1));
+%      B {n} = __imboundary__ (segment, 4, R (1), C (1));
+      B {n} = __imboundary__ (segment.', N, C (1), R (1));
     else
       B {n} = [R, C];
     endif