72#ifndef PINK26_TOPOLOGY_H
73#define PINK26_TOPOLOGY_H
The image descriptor shared by every pink26 operator.
Status codes and error messages.
p26_status
Result of a pink26 function.
Definition status.h:75
int64_t p26_index
Pixel index or size in pixels (64-bit, so large 3D images fit).
Definition status.h:72
A 2D or 3D image.
Definition image.h:68
p26_status p26_point_types(const p26_image *binary, int connectivity, p26_image **out)
Classifies every point of a binary image (see p26_point_type).
p26_status p26_topological_numbers_at(const p26_image *binary, p26_index point, int connectivity, int *t, int *tbar)
Computes T and T-bar at one point, without processing the whole image.
p26_status p26_point_classes_3d(const p26_image *binary, int connectivity, p26_image **out)
Classifies every point of a 3D binary image as in [MBA93] Table 1 (see p26_point_class_3d).
p26_status p26_simple_points(const p26_image *binary, int connectivity, p26_image **out)
Marks the simple points of a binary image (Bertrand 1994).
p26_status p26_topological_numbers(const p26_image *binary, int connectivity, p26_image **t_out, p26_image **tbar_out)
Computes the topological numbers T and T-bar of every point.
p26_point_type
Type of a point, as in Pink's typetopobin().
Definition topology.h:86
@ P26_POINT_OTHER
Object point matching none of the above, e.g.
Definition topology.h:100
@ P26_POINT_SEPARATING
T = 2.
Definition topology.h:90
@ P26_POINT_BACKGROUND
Not an object point.
Definition topology.h:87
@ P26_POINT_ISOLATED
T = 0.
Definition topology.h:91
@ P26_POINT_MULTIPLE
T > 2.
Definition topology.h:89
@ P26_POINT_INTERIOR
T-bar = 0.
Definition topology.h:92
@ P26_POINT_SIMPLE
T = 1 and T-bar = 1.
Definition topology.h:88
p26_point_class_3d
Class of a 3D point in the topological classification of Malandain, Bertrand & Ayache [MBA93] (Table ...
Definition topology.h:222
@ P26_CLASS_SURFACE
Type F, surface point (background on its two sides): T-bar = 2 and T = 1.
Definition topology.h:235
@ P26_CLASS_BORDER
Type C, border point, i.e.
Definition topology.h:229
@ P26_CLASS_INTERIOR
Type A, interior point of a volume: T-bar = 0 (no background around it).
Definition topology.h:225
@ P26_CLASS_ISOLATED
Type B, isolated point: T = 0 (no object neighbor).
Definition topology.h:227
@ P26_CLASS_SURFACES_JUNCTION
Type H, junction of surfaces (3 or more background parts): T-bar > 2 and T = 1.
Definition topology.h:239
@ P26_CLASS_CURVES_JUNCTION
Type E, junction of curves (3 or more branches): T-bar = 1 and T > 2.
Definition topology.h:233
@ P26_CLASS_BACKGROUND
Not an object point.
Definition topology.h:223
@ P26_CLASS_SURFACE_CURVE_JUNCTION
Type G, junction of a surface and one or more curves: T-bar = 2 and T >= 2.
Definition topology.h:237
@ P26_CLASS_CURVE
Type D, curve point (removing it cuts the curve in two): T-bar = 1 and T = 2.
Definition topology.h:231
@ P26_CLASS_SURFACES_CURVES_JUNCTION
Type I, junction of surfaces and one or more curves: T-bar > 2 and T >= 2.
Definition topology.h:241