pink26 0.1.1
Image processing and digital topology for teaching
Loading...
Searching...
No Matches
parallel_skeleton.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
225
226#ifndef PINK26_PARALLEL_SKELETON_H
227#define PINK26_PARALLEL_SKELETON_H
228
229#include <pink26/image.h>
230#include <pink26/status.h>
231
238
297p26_status p26_parallel_skeleton(const p26_image *binary, int connectivity,
298 p26_parallel_shape shape, int symmetric, int max_steps,
299 const p26_image *inhibit, p26_image **out);
300
325p26_status p26_zhang_wang_thinning(const p26_image *binary, int max_steps, p26_image **out);
326
352p26_status p26_guo_hall_thinning(const p26_image *binary, int variant, int max_steps,
353 p26_image **out);
354
355#endif /* PINK26_PARALLEL_SKELETON_H */
The image descriptor shared by every pink26 operator.
p26_status p26_parallel_skeleton(const p26_image *binary, int connectivity, p26_parallel_shape shape, int symmetric, int max_steps, const p26_image *inhibit, p26_image **out)
Parallel thinning based on critical kernels ([BC08], [BC14], [CB16]).
p26_status p26_zhang_wang_thinning(const p26_image *binary, int max_steps, p26_image **out)
Zhang-Wang parallel thinning (2D; Zhang and Wang 1988; Pink's lskelzhangwang).
p26_parallel_shape
What a critical-kernel thinning keeps (see the top of this file).
Definition parallel_skeleton.h:233
@ P26_PARALLEL_SURFACE
3D only: keep 2D isthmuses: surfaces
Definition parallel_skeleton.h:236
@ P26_PARALLEL_CURVILINEAR
keep 1D isthmuses: curves
Definition parallel_skeleton.h:235
@ P26_PARALLEL_ULTIMATE
thin until only non-removable points are left
Definition parallel_skeleton.h:234
p26_status p26_guo_hall_thinning(const p26_image *binary, int variant, int max_steps, p26_image **out)
Guo-Hall parallel thinning (2D; Guo and Hall 1992; Pink's lskelguohall).
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