nmrglue.analysis.analysisbase.neighbors

nmrglue.analysis.analysisbase.neighbors(pt, shape, structure)[source]

Generate a list of all neighbors to a point.

Parameters :

pt : tuple of ints

Index of the point to find neighbors of.

shape : tuple of ints

Shape of the region.

structure : ndarray of bools

Structure element that defines connections.

Returns :

pts : list of int tuples

List of tuples which represent indices for all points neighboring pt. Edges are treated as stopping points.

Previous topic

nmrglue.analysis.analysisbase.ndwindow_inside_index

Next topic

nmrglue.analysis.analysisbase.valid_pt

This Page