Get list of direct neighbours
#include "dip_neighbourlist.h"
dip_Error dip_NeighbourListMake ( ndims, connectivity, coords, resources )
A list coords is created with the relative coordinates to the direct neighbours of a pixel in an ndims-dimensional image. How many direct neighbours are returned is controlled by connectivity, see The connectivity parameter for the available values and their meaning.
coords is allocated and tracked in resources.
Data type | Name | Description |
dip_int | ndims | Image dimensionality |
dip_int | connectivity | Connectivity |
dip_CoordinateArray * | coords | Output neighbour coordinates |
dip_Resources | resources | Resources tracking structure. See ResourcesNew |
NeighbourListMake, NeighbourListMakeChamfer, NeighbourListMakeImage, NeighbourListToIndices, NeighbourIndicesListMake