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

EuclideanDistanceToPoint

Distance generation function

SYNOPSIS

#include "dip_generation.h"

dip_Error dip_EuclideanDistanceToPoint ( output, origin )

DATA TYPES

Output: sfloat

FUNCTION

Computes the Euclidean distance of each pixel in the output image to a point at origin. The coordinates of origin may lie outside the image.

ARGUMENTS

Data typeNameDescription
dip_ImageoutputOutput Image
dip_FloatArrayoriginCoordinates of the Origin

SEE ALSO

EllipticDistanceToPoint, CityBlockDistanceToPoint