DIPlib Documentation - ©1995-2005 Pattern Recognition Group, Delft University of Technology.

IndexToCoordinate

Convert pixel index to coordinate

SYNOPSIS

#include "dip_globals.h"

dip_Error dip_IndexToCoordinate ( index, coordinate, stride )

FUNCTION

This function converts an pixel index of image in to a coordinate array. The conversion is done by calculating the modulus of the index with the strides of the in image. coordinate has to be an allocated integer array with its size equal to the dimensionality of in.

ARGUMENTS

Data typeNameDescription
dip_intindexlineair index
dip_IntegerArraycoordinateoutput coordinates
dip_IntegerArraystridestride array

SEE ALSO

CoordinateToIndex, GetUniqueNumber

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