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

CoordinateToIndex

Convert coordinate to pixel index

SYNOPSIS

#include "dip_coordsindx.h"

dip_Error dip_CoordinateToIndex ( coordinates, index, stride )

FUNCTION

This function converts a pixel coordinate to an pixel index which is specific for the image from which stride was obtained. coordinages and stride must have the same number of elements.

ARGUMENTS

Data typeNameDescription
dip_IntegerArraycoordinatesCoordinate array
dip_int *indexPointer to pixel index
dip_IntegerArraystridestride array

SEE ALSO

IndexToCoordinate

DIPlib on-line documentation | Function reference | Global function index