pink26 0.1.1
Image processing and digital topology for teaching
Loading...
Searching...
No Matches
topology.h
Go to the documentation of this file.
1/*
2Copyright Alain Lebret (2026)
3
4This software is an image processing library whose purpose is to be
5used primarily for research and teaching.
6
7This software is governed by the CeCILL license under French law and
8abiding by the rules of distribution of free software. You can use,
9modify and/ or redistribute the software under the terms of the CeCILL
10license as circulated by CEA, CNRS and INRIA at the following URL
11"http://www.cecill.info".
12
13As a counterpart to the access to the source code and rights to copy,
14modify and redistribute granted by the license, users are provided only
15with a limited warranty and the software's author, the holder of the
16economic rights, and the successive licensors have only limited
17liability.
18
19In this respect, the user's attention is drawn to the risks associated
20with loading, using, modifying and/or developing or reproducing the
21software by the user in light of its specific status of free software,
22that may mean that it is complicated to manipulate, and that also
23therefore means that it is reserved for developers and experienced
24professionals having in-depth computer knowledge. Users are therefore
25encouraged to load and test the software's suitability as regards their
26requirements in conditions enabling the security of their systems and/or
27data to be ensured and, more generally, to use and operate it in the
28same conditions as regards security.
29
30The fact that you are presently reading this means that you have had
31knowledge of the CeCILL license. You don't have to accept the License,
32but note that nothing other than this License grants you permission
33to use, propagate or modify any covered work.
34*/
35
71
72#ifndef PINK26_TOPOLOGY_H
73#define PINK26_TOPOLOGY_H
74
75#include <pink26/image.h>
76#include <pink26/status.h>
77
102
129p26_status p26_topological_numbers(const p26_image *binary, int connectivity, p26_image **t_out,
130 p26_image **tbar_out);
131
145p26_status p26_simple_points(const p26_image *binary, int connectivity, p26_image **out);
146
159p26_status p26_point_types(const p26_image *binary, int connectivity, p26_image **out);
160
181p26_status p26_topological_numbers_at(const p26_image *binary, p26_index point, int connectivity,
182 int *t, int *tbar);
183
243
269p26_status p26_point_classes_3d(const p26_image *binary, int connectivity, p26_image **out);
270
271#endif /* 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