DIPlib Documentation - ©1995-2017 Quantitative Imaging Group, Delft University of Technology.

NeighbourListToIndices

Get indices to neighbours

SYNOPSIS

#include "dip_neighbourlist.h"

dip_Error dip_NeighbourListToIndices ( coords, stride, indices, resources )

FUNCTION

This function translates the relative coordinates in coords into relative indices into an image with strides given by stride.

indices is allocated and tracked in resources.

ARGUMENTS

Data typeNameDescription
dip_CoordinateArraycoordsInput neighbour coordinates
dip_IntegerArraystrideStride array
dip_IntegerArray *indicesOutput neighbour indices
dip_ResourcesresourcesResources tracking structure. See ResourcesNew

SEE ALSO

NeighbourListMake, NeighbourListMakeChamfer, NeighbourListMakeImage, NeighbourListToIndices, NeighbourIndicesListMake