# HG changeset patch # User jmones # Date 1094231556 0 # Node ID 36260c1a5884d94aa352737d4d28b42d2da4da7c # Parent fd3207ef9b7d2323161542617451b67392357927 Uses uint8 to save some temporal memory (suggested by David Bateman) diff --git a/poly2mask.m b/poly2mask.m --- a/poly2mask.m +++ b/poly2mask.m @@ -62,7 +62,7 @@ endif ## create output matrix - BW=logical(zeros(m,n)); + BW=logical(zeros(m,n,"uint8")); ## close polygon if needed if((x(1)!=x(length(x)))||(y(1)!=y(length(y)))) @@ -235,6 +235,9 @@ % % $Log$ +% Revision 1.4 2004/09/03 17:12:36 jmones +% Uses uint8 to save some temporal memory (suggested by David Bateman) +% % Revision 1.3 2004/09/03 13:32:07 jmones % Work with logical arrays from BW creation %