Convert coordinate to pixel index
#include "dip_coordsindx.h"
dip_Error dip_CoordinateToIndex ( coordinates, index, stride )
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.
| Data type | Name | Description |
| dip_IntegerArray | coordinates | Coordinate array |
| dip_int * | index | Pointer to pixel index |
| dip_IntegerArray | stride | stride array |