50#ifndef PINK26_DISTANCE_H
51#define PINK26_DISTANCE_H
p26_status p26_distance_map(const p26_image *binary, p26_distance_kind kind, p26_image **out)
Computes, for every object point, the distance to the nearest background point; the outside of the im...
p26_distance_kind
Kind of distance.
Definition distance.h:61
@ P26_DISTANCE_SQUARED_EUCLIDEAN
Squared Euclidean distance dx^2 + dy^2 (+ dz^2) to the nearest background point, exact (Meijster,...
Definition distance.h:67
@ P26_DISTANCE_D4
City-block distance |dx| + |dy|: steps between 4-neighbors.
Definition distance.h:78
@ P26_DISTANCE_D6
City-block distance |dx| + |dy| + |dz|: steps between 6-neighbors.
Definition distance.h:82
@ P26_DISTANCE_D18
Steps between 18-neighbors (distance between D6 and D26).
Definition distance.h:84
@ P26_DISTANCE_CHAMFER
5-7 chamfer distance (Pink's lchamfrein): a step to a 4-neighbor costs 5 and a step to a diagonal nei...
Definition distance.h:76
@ P26_DISTANCE_D26
Chessboard distance max(|dx|, |dy|, |dz|): 26-neighbors.
Definition distance.h:86
@ P26_DISTANCE_D8
Chessboard distance max(|dx|, |dy|): steps between 8-neighbors.
Definition distance.h:80
The image descriptor shared by every pink26 operator.
Status codes and error messages.
p26_status
Result of a pink26 function.
Definition status.h:75
A 2D or 3D image.
Definition image.h:68