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

CityBlockDistanceToPoint

Distance generation function

SYNOPSIS

#include "dip_generation.h"

dip_Error dip_CityBlockDistanceToPoint ( output, origin, scale )

DATA TYPES

Output: sfloat

FUNCTION

Computes the cityblock distance of each pixel in the output image to a point at origin. The coordinates of origin may lie outside the image. The scale parameter may be used to specify the relative distance between pixels in each dimension.

ARGUMENTS

Data typeNameDescription
dip_ImageoutputOutput Image
dip_FloatArrayoriginOrigin
dip_FloatArrayscaleRelative scale of the pixel distances for each dimension

SEE ALSO

EllipticDistanceToPoint, EuclideanDistanceToPoint

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