[Numpy-discussion] Adjacent matrix
Thiago Franco Moraes
Tue Jun 14 07:50:47 CDT 2011
On Tue, Jun 14, 2011 at 8:06 AM, Luis Pedro Coelho <firstname.lastname@example.org> wrote:
> 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:
>> 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)
Thanks Luis. But mahotas.bwperim only supports 2D images, my images
are 3D from Computerized Tomography (often very large) and I need
More information about the NumPy-Discussion