On Monday, June 13, 2011 03:55:46 PM Thiago Franco Moraes wrote: > "Find all of the grid points in that lie adjacent to one or more grid > points of opposite values." > > This is the code used to calculate that matrix: [spin] > Where nx, ny and nz are the x, y, z dimensions from the "im" input > binary matrix. I think this operation is called bwperim.
My package, mahotas, supports it directly: mahotas.bwperim(bw, n) at http://packages.python.org/mahotas/ HTH, Luis
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion