Mercurial > forge
changeset 10920:c84b1998717b octave-forge
Make bwfill output logical type
author | jordigh |
---|---|
date | Mon, 24 Sep 2012 15:42:50 +0000 |
parents | c977c8c01e7e |
children | 6210d5e7073b |
files | main/image/NEWS main/image/src/bwfill.cc |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/main/image/NEWS Mon Sep 24 15:02:13 2012 +0000 +++ b/main/image/NEWS Mon Sep 24 15:42:50 2012 +0000 @@ -48,6 +48,7 @@ improved matlab compatibility bweuler + bwfill imhist conndef im2double
--- a/main/image/src/bwfill.cc Mon Sep 24 15:02:13 2012 +0000 +++ b/main/image/src/bwfill.cc Mon Sep 24 15:42:50 2012 +0000 @@ -181,7 +181,7 @@ } } // while ( npoints > 0) - Matrix imout (imM, imN); + boolNDArray imout ( dim_vector (imM, imN)); ColumnVector idxout (imM*imN); int idx = 0; @@ -196,7 +196,7 @@ for (int i = 0; i < imM; i++) for (int j = 0; j < imN; j++) { - imout (i, j) = (double) (imo [(i+1) + ioM*(j+1)] != notvalidpt); + imout (i, j) = imo [(i+1) + ioM*(j+1)] != notvalidpt; if (imo [(i+1) + ioM*(j+1)] == idxpoint) idxout (idx++) = (double) (i + j*imM + 1); }