HAL Id: hal-00731083
https://hal-upec-upem.archives-ouvertes.fr/hal-00731083
Preprint submitted on 12 Sep 2012
HAL is a multi-disciplinary open access archive for the deposit and dissemination of sci- entific research documents, whether they are pub- lished or not. The documents may come from teaching and research institutions in France or
L’archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d’enseignement et de recherche français ou étrangers, des laboratoires
Powerful Parallel Symmetric 3D Thinning Schemes Based on Critical Kernels
Gilles Bertrand, Michel Couprie
To cite this version:
Gilles Bertrand, Michel Couprie. Powerful Parallel Symmetric 3D Thinning Schemes Based on Critical
Kernels. 2012. �hal-00731083�
Critial Kernels
∗
GillesBertrand and MihelCouprie
UniversitéParis-Est, Laboratoired'InformatiqueGaspard-Monge, ESIEE Paris
Cité Desartes, BP 99,93162 Noisy-le-GrandCedex Frane
g.bertrandesiee.fr,m.ouprieesiee.fr
September 12, 2012
Abstrat
Themain ontributionof thepresentartileonsists of
new3Dparallelandsymmetrithinningshemeswhih
havethefollowingqualities:
- They are eetive and sound, in the sense that they
are guaranteedto preservetopology. Thisguarantee is
obtainedthankstoatheoremonritialkernels;
- They are powerful, in the sense that they remove
morepoints,inoneiteration,thananyothersymmetri
parallelthinningsheme;
- They are versatile, as onditionsfor thepreservation
of geometrial features (e.g., urve extremities or
surfae borders) are independent of those aounting
fortopologypreservation;
- They are eient: we provide in this artile a small
set ofmasks,atingin thegrid
Z 3
,that issuient,in addition to the lassial simple point test, to straight-forwardlyimplementthem.
Keywords: Thinningalgorithm,skeleton,parallelal-
gorithm, ritial kernel, ubial omplex, simple point,
ollapse.
1 Introdution
Computingtheskeletonofa3Dshapeisafundamental
stepin severalappliationsdealingwithshapeanalysis,
shapereognition,registration,visualization,animation,
et. A fundamental property of skeletons is topology
preservation: askeletonmusthavethesametopologial
harateristisastheoriginalshape.
∗
Thiswork has been partially supported bythe ANR-2010-
BLAN-0205KIDICOprojet.
Indisrete grids (
Z 2
,Z 3
,Z 4
), a topology-preserving transformation an be dened thanks to the notionofsimple point [25℄: intuitively, a point of an objet (a
subset of
Z d
) is alled simpleif it anbe deleted from this objetwithout alteringtopology. Let us illustratethis notion by Fig. 1, whih displays a samesubset of
Z 2
under twousual representations: asa set of points (left),andasasetofpixels(right). Inthisexample,thepixels(or points)
a, b, c
are simplebutx, y, z, t
are not.Thisnotion,pioneeredbyDuda,Hart,Munson[18℄,Go-
lay [20℄ and Rosenfeld [43℄, hassine been the subjet
of an abundant literature. In partiular, loal hara-
terizationsofsimplepointshavebeenproposed(seee.g.
[13, 17℄), on whih eientimplementationof thinning
proeduresarebased.
y a b
c z
t x
Figure1: Illustrationof2Dsimplepoints/pixels. Theset
X
ismadeofthepointsrepresentedasblakdissonthe left,and bygraypixelsonthe right. Thepoints/pixelsa, b, c
aresimplewhilex, y, z, t
arenot: deletingx
wouldreate a hole in
X
, deletingy
would suppress a hole,deleting
z
wouldsplitaonnetedomponent,anddelet-ing
t
would suppressaonnetedomponent.Themostnatural wayto thin anobjetonsistsof
removingsomeofitsborderpointsinparallel. Byparal-
lel,wemeanthat thesameoperationisexeutedsimul-
Figure2: Dierentkindsofskeletons: (a)surfaeskeleton,(b)urvilinearskeleton,()minimalskeleton.
taneously and independentlyfor eah image point. By
repeating suh a proedure until stability, onean ob-
tainawell-enteredskeletonoftheoriginalobjet(see
Fig.2). Furthermore,parallelthinningalgorithms tend
toprodueskeletonswhiharemorerobusttosmallvari-
ationsofshapeontours,in omparisonwithsequential
algorithmswhihmustmakearbitraryhoiesregarding
theorderoftheproessingofpoints.
However,paralleldeletionofsimplepointsdoesnot,in
general,guaranteetopologypreservation: seeforexam-
pleFig.1wherethepoints
a
andb
arebothsimple,andremovingthese twopoints simultaneouslywould merge
two bakground omponents. In fat, suh a guaran-
tee is not obvious to obtain, evenfor the 2D ase (see
[16℄,wherefteenpublishedparallelthinningalgorithms
areanalyzed,andounter-examplesareshownforveof
them).
For the 2D ase, A. Rosenfeld introdued in [44℄ a
methodthatonsistsofdividingeahthinningstepinto
four substeps. Eahof these substepsonsiders asan-
didate for deletion, only the simple points that have
no neighborbelonging to the objet in one of the four
main diretions (north, south, east, west) and haveat
leasttwo8-neighborsbelongingtotheobjet. However,
thisso-alleddiretionalstrategyannotbestraightfor-
wardly extended to 3D. In this ase, the six main di-
retions arenorth, south, east, west, upand down. In
Fig. 3, the voxels
x, y
are simple voxels that have noneighbor belonging to the objet in the diretion up,
butifweremovethemin parallel,theobjetsplits.
Someauthors(see e.g. [9,33, 39,38℄)haveproposed
thinningalgorithmsbasedontheso-alledsubeldstrat-
egy, ageneralstrategywhih permits theparallel dele-
tionofertain simplepoints. It onsistsofonsidering,
ineahsubstep,onlysimplepointsthatbelongtoagiven
subgrid(alsoalled subeld). Forexamplein 2D(resp.
3D),four(resp. eight)disjointsubeldsmaybedened
by saying that two points belong to the same subeld
if the parity of eah of their oordinates is the same.
Variants with four or even two subelds, in 3D, have
also beenproposed; but additionalonditions must be
hekedto ensuretopologypreservation.
Thediretionalandthesubeldstrategyshareaom-
mondrawbak: dependingontheorderoftheonsidered
diretions or subelds, one an obtain dierent skele-
tons. Analternativetothesestrategiesonsistsofdelet-
ing points in a symmetri manner. By symmetri, we
mean that this operation is invariant by any isometry
(anisometry, in
Z d
, isabijetionwhihpreservesadja- eny relations). For topology preservation, additionalonditionsmustbeveriedwhendeleting simplepoints
in this way. Suh onditionsare diultto design: in-
deed, veryfew symmetri3D thinningalgorithms have
beenpublished[31,32,37,29,40℄,andamongthese,[31℄
and[32℄donotpreservetopology(see[27,28℄).
Reently, one of the authors introdued a general
framework, alled ritial kernels [8℄, that permits to
x y
Figure 3: All voxelsare simple, thevoxels
x
andy
arebothup voxels.
hekthe topologial soundness of parallel thinningal-
gorithmsin anydimension,andalsotodesignnewones
thatpreservetopologybyonstrution.
As proven in [12℄, ritial kernels onstitute a non-
trivial generalization of all previously proposed frame-
works with similar aims, namely minimal non-simple
sets[42℄andP-simplepoints[6℄. Thankstoritialker-
nels, wewere abletoproposein [11℄nine new2Dthin-
ning algorithms whih respond to spei needs (sym-
metry, entering, thinness, geometrial riterions, et.)
andwhihhadnoequivalentamongpreviouslypublished
works. Thelearseparationoftopologialandgeometri-
alonstraints,whihisakeyfeatureofthisframework,
makeseasythedesignofsuhalgorithms.
Themainontributionofthepresentartileonsistsof
new3Dparallelandsymmetrithinningshemeswhih
havethefollowingqualities:
-Theyare eetiveand sound,asthemain theorem of
ritialkernelsandadditional properties proven in this
artileprovidetheguaranteeoftopologypreservation;
-Theyarepowerful,inthesensethattheyremovemore
points,in oneiteration, thananyother symmetripar-
allelthinningsheme. Inpartiular,theyanbeusedto
omputeminimalskeletons;
- They are versatile, as onditionsfor thepreservation
ofgeometrialfeatures(e.g.,urveextremitiesorsurfae
borders)areindependentofthose aountingfortopol-
ogy preservation. Wegive in this artileexamples and
illustrations of minimal, urvilinear and surfae skele-
tonsproduedusingtheseshemes;
- They are eient: we provide in this artile a small
set ofmasks,atingin thegrid
Z 3
,that issuient,in additiontothelassialsimplepointtest,tostraightfor-wardlyimplementthem.
Alltheproofsofpropertiesstatedbelowareintheap-
pendix. Somepreliminaryresultsoftheworkpresented
inthis paperappearin[10℄.
2 Cubial and Xel Complexes
Inthis setion, wegivesome basidenitions forubi-
al omplexes, seealso [26, 3, 2℄. Weonsider herethe
three-dimensional ase. Note that most of the notions
introduedin therst setionsmakesense in arbitrary
n
-dimensionalubialspaes.Let
Z
bethesetofintegers. Weonsider thefamilies of setsF 1 0
,F 1 1
, suh thatF 1 0 = {{a} | a ∈ Z }
,F 1 1 = {{a, a + 1} | a ∈ Z }
. A subsetf
ofZ 3
whih is the Cartesianprodutofexatlyd
elementsofF 1 1
and(n−d)
elementsof
F 1 0
isalledafae orad
-faeofZ 3
,d
isthedimension of
f
,wewritedim(f ) = d
.We denote by
F 3
the set omposed of alld
-faes ofZ 3
, withd ∈ {0, 1, 2, 3}
. Ad
-fae ofZ 3
isalled apoint ifd = 0
, a (unit) segment ifd = 1
, a (unit) square ifd = 2
,a(unit) ube ifd = 3
.If
X
isanitesetoffaesinF 3
,wewriteX − = {y ∈ F 3 | y ⊆ x
forsomex ∈ X }
,X −
isthelosure ofX
. Aniteset
X
offaesinF 3
isaubial omplex(inF 3
)ifX = X −
. We denotebyC 3
the olletionomposedof allsuhomplexes.Let
X
be anite set of faes inF 3
. Wesay thatX
is a xel omplex (in
F 3
) if, for anyx, y ∈ X
, we havey = x
whenevery ⊆ x
. WedenotebyX 3
theolletionomposedofallsuhomplexes. Observethat,if
X ∈ X 3
and
Y ⊆ X
,thenwehaveneessarilyY ∈ X 3
.If
X
isanitesetoffaesinF 3
,wedenotebyX +
thesetoffaes in
X
whiharemaximal forinlusioninX
.Thus, if
X ∈ C 3
,wehaveX + ∈ X 3
and(X + ) − = X
. IfX ∈ X 3
,wehaveX − ∈ C 3
and(X − ) + = X
.Therefore,itisequivalent,withtheaboveorrespon-
denes, to speify aubial omplex ora xel omplex.
SeeanillustrationFig. 4.
x y
z t
(a) (b) ()
(d) (e)
Figure4: (a):Fourpoints
x, y, z, t
. (b):Agraphialrep-resentation of the set of faes
{{x, y, z, t}, {x, y}, {z}}
.(): A set of faes
X
, whih is neither a ubial om-plexnoraxelomplex. (d):Theset
X +
, whihisaxelomplexomposedof4segments,1square, and1ube.
(e):Theset
X −
,whih isaubialomplex.3 Simple Faes
Intuitively afae
x
of a xel omplexX
is simple if itsremoval from
X
does not hange the topology ofX
.Inthissetion, weproposeadenition ofasimplefae
(a) (b) () (d)
Figure 5: The ubialomplexof Fig. 4(e) andthree
stepsof elementaryollapses.
based on the operation of ollapse [47, 19℄. This op-
eration, whih is a disrete analogue of a ontinuous
deformation (a homotopy), is dened hereafter for an
arbitraryubialomplex
X ∈ C 3
.Let
X ∈ C 3
andx, y ∈ X
suh thatx ⊂ y
. Ify
isthe onlyfae of
X
distint fromx
that ontainsx
, wesaythat
(x, y)
isafree pair forX
,andthattheubialomplex
X \ {x, y}
isanelementary ollapseofX
.Let
X, Y ∈ C 3
. We say thatX
ollapses ontoY
ifthere exists asequene
hX 0 , ..., X k i
suh thatX 0 = X
,X k = Y
,andX i
isanelementaryollapseofX i − 1
,i = 1, ..., k
. SeeillustrationFig. 5.Now,wegivethedenitionof asimplefae in anar-
bitraryxelomplex
X ∈ X 3
,see[8℄. Itmaybeseenasa disreteanalogueof theonegivenbyT.Y.Kongin [23℄whihlieson ontinuous deformationsinthe Eulidean
spae. SeetheillustrationgivenFig. 6.
Denition1. Let
X ∈ X 3
andletx ∈ X
. Wesaythatx
issimpleforX
ifX −
ollapsesonto(X \ {x}) −
. Ifx
is simple for
X
, we say thatX \ {x}
is anelementarythinningof
X
.Let
X, Y ∈ X 3
. WesaythatY
is athinning ofX
ifthere exists asequene
hX 0 , ..., X k i
suh thatX 0 = X
,X k = Y
, andX i
is an elementary thinning ofX i − 1
,i = 1, ..., k
.Observethat, if
Y
is athinning ofX
, thenX −
ol-lapsesonto
Y −
.4 Critial Kernels
Let
X
beaxelomplexinF 3
. Asseenintheintrodu- tion, if we remove simultaneously (in parallel) simplefaesfrom
X
,wemayhangethetopologyoftheorig-inal objet
X
. More preisely, we may obtain asetY
suhthat
X −
doesnotollapseontoY −
.Thus,itisnotpossibletousediretlythenotionofsim-
ple fae for thinning disrete objets in asymmetrial
manner.
In this setion, we reall a framework for thinning
disreteobjetsinparallelwiththewarrantythatwedo
x
y z
X Y Z T
X − Y − Z − T −
Figure 6: Four xel omplexes
X
,Y = X \ {x}
,Z = Y \ {y}
,T = Z \ {z}
(X
is thexel omplex of Fig. 4(d)). Theubial omplexes
X −
,Y −
,Z −
,T −
arealsogiven. Thefae
x
issimpleforX
,y
issimpleforY
,butz
isnotsimpleforZ
,forZ −
doesnotollapseonT −
.(a) (b)
Figure7: (a) Axelomplex
X
whih ismadeof 3seg-ments, 3squares, and 4 ubes, (b) the faes whih are
essentialfor
X
and whih are notfaes ofX
are high-lightedindark.
notalterthetopologyoftheseobjets[8℄. Thismethod
holds for omplexes of arbitrary dimension. As far as
weknow,thisistherstgeneralmethodwhihpermits
tothin arbitraryomplexesin asymmetriway.
Let
C ∈ X 3
. WesaythatC
isad
-lique,oralique,if
∩{x ∈ C}
isad
-fae.Denition 2. Let
X ∈ X 3
and letx ∈ X −
. We saythat
x
is an essential fae forX
ifx
is preisely theintersetion of all faes of
X
whih ontainx
, i.e., ifx = ∩{y ∈ X | x ⊆ y}
. Ifx
isanessentialfaeforX
,wewrite
x + X = {y ∈ X | x ⊆ y}
,andwesaythattheliquex + X
isessentialforX
.Let
x
be any fae ofX ∈ X 3
. We observethatx
isan essential fae for
X
and we havex + X = {x}
. Theessentialfaesforthexelomplex
X
ofFig. 7(a)whiharenotfaesof
X
arehighlightedFig. 7(b).Denition3. Let
X ∈ X 3
andletx
beanessentialfaefor
X
. Wesaythatx
isregularforX
ifx
is simplefor(X \ x + X )∪ {x}
. Wesaythatx
isritialforX
ifx
isnotregularfor
X
. Ifx
isritial (resp. regular)forX
,wesaythat thelique
x + X
isritial(resp. regular)forX
.Observethat,inthepreviousdenition,
(X \x + X )∪{x}
isaxelomplex. If
x ∈ X
,wehave(X \ x + X ) ∪ {x} = X
.Thus, a fae
x ∈ X
is regular forX
if and only if itis simple for
X
. Observe also that a0
-lique whih isessential for
X
is neessarily ritial forX
. See Fig.8 and 9 whih illustrate the notion of a ritial fae.
Note that an alternativeand equivalent denition of a
regular/ritialfaeisgivenin [8℄.
x y z
t
(a)
x
y
(b) ()
z
t
(d) (e)
Figure 8: (a): The xel omplex
X
of Fig. 7 and fouressential faes
x
,y
,z
,t
(highlighted). (b): The xel omplex(X \ x + X ) ∪ {x}
:x
isregularforX
. ()Thexelomplex
(X \ y + X ) ∪ {y}
:y
isritialforX
. (d): Thexelomplex
(X \ z X + ) ∪ {z}
:z
isregularforX
. (e)Thexelomplex
(X \ t + X ) ∪ {t}
:t
isritialforX
.Remark 4. Let
X ∈ X 3
, letx
bean essentialfae forX
, and letC
be the liquex + X
. IfC
is regular forX
,andif
x ∈ X
,then(asmentionedabove)x
issimpleforX
,and wehaveC = {x}
. ThusX \ C
is athinning ofX
: weanremovesuharegularliquefromtheobjetwithoutaltering the topology. Now letus onsider the
asewhere
C
isregularbutx 6∈ X
. Forthatpurpose,let(a) (b)
Figure9: (a): Thexelomplex
X
ofFig. 7: thefaesofX
whihareritialforX
(notsimple) arehighlighted.(b): The faes whih are ritial for
X
and whih arenotfaes of
X
arehighlighted.usonsiderthexelomplex
X
ofFig. 8(a)andthefaesx
andz
. LetC
bethelique(madeof2squares)suhthat
C = x + X
,C
isa regularlique forX
. Weobservethat
X \ C
is a thinning ofX
(see Fig. 8(b)). Nowlet
C ′ = z X +
(a liqueomposed of twoubes) whihisalsoaregularliquefor
X
. WenotethatX \ C ′
hasnotthesametopologyas
X
(X
hastwotunnelsandX \ C ′
has only one tunnel, see Fig. 8 (a) and (d)). Thus
X \ C ′
annotbeathinningofX
. Infat,thedierenebetweenthesetwosituationsisthatthetwofaesof
x + X
areregular (i.e. simple) for
X
, whilethere is afae ofz + X
whih is not regular forX
(the ube abovez
). Inthesequel of this setion, we will give someonditions
whih,intheontextofritialfaesandritialliques,
ensurethat agivensubset
Y ⊆ X
isathinningofX
.Thefollowingresultisaonsequeneofageneralthe-
oremwhihholdsforomplexesofarbitrarydimensions
(see[8℄).
If
X ∈ X 3
,theritialkernelofX
istheubialomplexomposedofallfaesthatareritialfor
X
andallfaesthatareinludedinthese faes.
Theorem5. Let
X ∈ X 3
andletY ⊆ X
.Thexelomplex
Y
isathinningofX
ifY −
ontainstheritial kernelof
X
.Inother words,thexelomplex
Y
isathinningofX
if
Y −
ontainsallfaes thatareritialforX
. SeeFig.10 whih provides two examples of a omplex
Y
thatsatisestheaboveproperty.
AsadiretonsequeneofTh. 5,weobtainthefollow-
ingpropertywhihwill beourguidelineforthesequel.
Corollary 6. Let
X ∈ X 3
andletY ⊆ X
.The xelomplex
Y
isathinningofX
ifany lique thatisritial for
X
ontainsatleastonefaeofY
.Weonludethis setionbygivingaharaterization
oftheomplexeswhih satisfytheonditionof Th.5.
Theorem 7. Let
X ∈ X 3
andletY ⊆ X
. The ubialomplex
Y −
ontainsthe ritialkernelofX
ifandonlyif any
Z
suhthatY ⊆ Z ⊆ X
isathinningofX
.(a) (b)
() (d)
Figure10: (a): Axelomplex
X
madeof12ubes. (b):Thefaesthatareritialfor
X
arehighlighted. ()and (d) : twoxel omplexesY ′ ⊆ X
andY ′′ ⊆ X
. By Th.5,
Y ′
andY ′′
areboththinningsofX
.5 Charaterization of ritial
liques in voxel omplexes
Inthispaper,weinvestigateamethodologyforthinning
objets whih are made of voxels (i.e., unit ubes).
For that purpose, wepropose, in thefollowing, several
haraterizations of
d
-liques(withd = 3, 2, 1, 0
)whihare ritial for suh objets. We rst give a few basi
denitionsforvoxelomplexes.
We denote by
V 3
the olletionof all xel omplexes whih are omposed solely of unit ubes. A unit ubeisalso alledavoxel,anelementof
V 3
isalled avoxel omplex.Forexample,thexelomplexofFig. 10(a)isavoxel
omplex,whiletheoneofFig. 7(a)is not.
Figure 11: Dierent types of neighborhoods:
N 2 ∗ (x)
(squares),
N 1 ∗ (x)
(squaresand irles),N 0 ∗ (x)
(squares,irles, and triangles). The voxel
x
orresponds to theentralpoint.
Let
d ∈ {0, 1, 2}
. We say that two voxelsx, y
ared
-adjaent ifx ∩ y
is ak
-fae, withk ≥ d
. Ifx
is avoxel, we write
N d (x)
for the set of all voxels whihare
d
-adjaent tox
,N d (x)
is thed
-neighborhood ofx
.Notethat, foreahvoxel
x
,wehavex ∈ N d (x)
. WesetN d ∗ (x) = N d (x) \ {x}
. SeeanillustrationFig. 11wherethevoxel
x
isrepresentedbyapoint.Let
X, Y ∈ V 3
, withY ⊆ X
. We say thatY
isd
-onneted inX
if, for anyx, y ∈ Y
, there exists asequene
hx 0 , ..., x k i
of voxels inX
suh thatx 0 = x
,x k = y
,andx i
isd
-adjaenttox i − 1
,i = 1, ..., k
.Wesaythat
X ∈ V 3
isd
-onneted ifX
isd
-onnetedin
X
.A3-lique whih isritial for
X ∈ V 3
is aset om- posedsolelyofonevoxelwhihisnotsimpleforX
. Thus,anyharaterizationofsimplevoxelsissuienttohar-
aterizesuhliques.
Thefollowingpropositionshowsthat,whenonsider-
ingvoxelomplexes, Denition 1leadsto aharateri-
zation of simple voxelswhih is equivalent to previous
ones [5,13,46, 22, 17℄. If
X ∈ V 3
, wewriteX
for thesetofvoxelswhiharenotin
X
.Proposition 8. Let
X ∈ V 3
andletx ∈ X
.Thevoxel
x
issimpleforX
ifandonly if:1)Theset
N 0 ∗ (x)∩X
isnon-emptyand0
-onneted;and2)The set
N 2 ∗ (x) ∩ X
is non-emptyand2
-onnetedinN 1 ∗ (x) ∩ X
.Let
d ∈ {0, 1, 2}
. Thevoxelswhihbelongtod
-liquesthatareritialfor
X ∈ V 3
maybedetetedby:1)Detetingall
d
-faesinX −
whihareessentialforX
(Def. 2);
2)Detetingallessential
d
-faesx
whiharenotsimplefor
(X \ x + X ) ∪ {x}
(Def. 3);3)Labelingallthevoxelsof
X
whihontainsuhfaes.In the following, we propose to haraterize ritial
liques in a way suh that the omputation of
X −
isnotneessary.
Werst observethat, upto
π/2
rotations,thethreeongurations
C 2
,C 1
, andC 0
given in Fig. 12 maybe used for the detetion of an arbitrary (regular or
ritial) lique whih is essential for a given voxel
omplex
X
inV 3
(in this gure a voxel is represented byapoint). Infat,itmaybeseenthat:-
C 2
may be used for deteting a 2-liqueC
whih isessentialfor
X
: there is suh alique ifboth voxelsA
and
B
areinX
. Inthisase,wehaveC = {A, B}
.-
C 1
may be used for deteting a 1-liqueC
whih isessentialfor
X
: there is suh aliqueif bothA
andD
are in
X
or bothB
andC
are inX
. In this ase, wehave
C = {A, B, C, D} ∩ X
.-
C 0
may be used for deteting a 0-liqueC
whih isessentialfor
X
: there issuhaliqueifA
andH
,orB
and
G
,orC
andF
,orD
andE
areinX
. Inthisase,wehave
C = {A, B, C, D, E, F, G, H} ∩ X
.Wenowintrodueanotionofneighborhood whih is
fundamentalforourpurpose.
Denition 9. Let
S ∈ V 3
. TheK
-neighborhood ofS
,written
K(S)
, is the set made of all voxels whih are0
-adjaenttoeahvoxelinS
. WesetK ∗ (S) = K(S) \ S
.We note that we have
K(S) = N 0 (x)
wheneverS
ismadeofasinglevoxel
x
. Wealsoobservethat:-wehave
K(T ) ⊆ K(S)
wheneverS ⊆ T
;-wehave
S ⊆ K(S)
wheneverS
isalique;A B
A B D C
A E
B F
C
D H
G
C 2 C 1 C 0
Figure 12: Masksfor
2
-liques(C 2
),1
-liques(C 1
), and0
-liques(C 0
). Here,avoxelisrepresentedbyitsentral point.A B
X Y
X Y X
Y X
Y Y
X Y X
X
X
6
6
Y
Y
7 7 0
0 1 2 1
2 3
3
4
4
5
5
K 2
A B
Y Y Y
Y D
C X X
X X
3
2
0 3
0 1 1
2
A E
B F
C
D H
G
K 1 K 0
Figure13:
K
-neighborhoodsfor2
-liques(K 2
),1
-liques(
K 1
), and0
-liques(K 0
). A voxelis representedby its entralpoint.- we have
K(S) = K(T )
wheneverS
andT
are twoliquessuhthat
∩{x ∈ S} = ∩{x ∈ T }
.The
K
-neighborhoodsoftheongurationsC 2
,C 1
,andC 0
aregivenFig. 13. Observethat wehaveK ∗ (S ) = ∅
fortheonguration
C 0
.Let
X ∈ V 3
. Asmentionedearlier,a0
-liquewhihisessentialfor
X
isneessarilyritial. Withthefollowingtwopropositions, wegivesomeharaterizationsfor
2
-and
1
-liqueswhih areregular forX
. Reallthat a2
-lique whih is essentialfor
X
is neessarily omposedoftwovoxelswhihare
2
-adjaent(ongurationC 2
).Proposition 10. Let
X ∈ V 3
, letC = {x, y}
be a2
-liquewhih isessential for
X
. The liqueC
isregularfor
X
ifandonly if:1) The set of voxels
K ∗ (C) ∩ X
is non-empty and0
-onneted; and
2)Thereexiststwo voxels
x ′ , y ′ ∈ K ∗ (C) ∩ X
suhthatx ′ ∈ N 2 ∗ (x)
,y ′ ∈ N 2 ∗ (y)
,andx ′ ∈ N 2 ∗ (y ′ )
.Proposition11. Let
X ∈ V 3
,letC
bea1
-liquewhihisessential for
X
. The liqueC
isregularforX
if andonly if the set of voxels
K ∗ (C) ∩ X
is non-empty and0
-onneted.We are now in position to propose some masks for
detetingritial liques. These masks
K 2
,K 1
,K 0
arey x
(a)
B A
(b)
Figure 14: (a): Thexel omplex
X
whih isthe oneofFig. 10 (a). Here, eah voxel of
X
is represented by a blak disk. (b): The maskK 2
, withA, B
mathingvoxels
x, y
ofX
. Conditionii) ofDef. 12 forK 2
isnotsatisedbutonditioni)isfullledsinethesetofvoxels
{X 0 , ..., X 7 , Y 0 , ..., Y 7 } ∩ X
isnot0
-onneted. Thus,byProp. 13,thevoxels
x, y
onstitutea2
-liqueofS
whihisritial for
X
. SeealsoFig.10 (b)where theritialfae
z = x ∩ y
ishighlighted,wehavez X + = {x, y}
.desribedusingFig.13. Foreahofthesemasks,wealso
onsider allthemasksobtainedfrom them byapplying
π/2
rotationsabouteahaxis. Weget7masks(3forK 2
,3for
K 1
, and 1forK 0
). SeeFig. 14 foranillustration oftheuseofthemaskK 2
.Denition 12. Let
X ∈ V 3
, and letS
be a set ofvoxelsof
X
. Wesaythat:1)
S
mathesK 2
inX
ifS = {A, B}
;andi)thesetofvoxels
{X 0 , ..., X 7 , Y 0 , ..., Y 7 } ∩X
iseitheremptyornot
0
-onneted;orii)foreah
i ∈ {0, 2, 4, 6}
,X i
orY i
belongstoX
.2)
S
mathesK 1
inX
ifS = {A, B, C, D} ∩ X
;andi)at leastoneof thesets
{A, D}
,{B, C }
isasubsetof
X
;andii) we haveeither
[ U ∩ X 6= ∅
andV ∩ X 6= ∅ ]
or[ U ∩ X = ∅
andV ∩ X = ∅ ]
, withU = {X 0 , ..., X 3 }
and
V = {Y 0 , ..., Y 3 }
.3)
S
mathesK 0
inX
ifS = {A, B, C, D, E, F, G, H}∩X
and at least one of the sets
{A, H}, {B, G}, {C, F }
,{D, E}
isasubsetofX
.Prop. 13is adiretonsequeneofProp. 10and11.
Proposition 13. Let
X ∈ V 3
, letS
be aset of voxelsin
X
,andletd ∈ {2, 1, 0}
. ThesetS
isad
-liquewhihisritial for
X
ifandonly ifS
mathesK d
inX
.Weonludethis setionbygivingaharaterization
ofsimplevoxelsandregularliquesthat isbasedonthe
denedreursivelyasfollows.
Denition14. Let
X ∈ V 3
. WesaythatX
isreduible ifeither:i)
X
isomposed ofasinglevoxel;orii)thereexists
x ∈ X
suhthatN 0 ∗ (x) ∩ X
isreduibleand
X \ {x}
isreduible.Thefollowingtheorem allowsus to haraterizesim-
ple voxels withreduible sets, see also[23, 7℄ forother
reursiveapproahesforsimpliity.
Theorem15. Let
X ∈ V 3
andletx ∈ X
. Thevoxelx
issimplefor
X
if andonlyifN 0 ∗ (x) ∩ X
isreduible.Thus, aomplex
X ∈ V 3
isreduibleifand onlyifit is possibleto redueX
to a singlevoxel byiteratively removingsimplevoxels.Morepreisely,
X ∈ V 3
isreduibleif andonlyifthere existsasequenehx 0 , ..., x k i
suhthatX = {x 0 , ..., x k }
,and
x i
issimplefor{x i , ..., x k }
,i ∈ [0, k − 1]
.The following theorem is an extension of Th. 15 to
arbitraryregularliques.
Theorem 16. Let
X ∈ V 3
and letC
be a lique thatisessential for
X
. The liqueC
isregularforX
if andonlyif
K ∗ (C) ∩ X
isreduible.Thus, Th. 16 makes it possible to haraterize, in
aunied way, regular
d
-liques, withd = 3, 2, 1, 0
. Inpartiular, for
d = 3
, we get the haraterization of simplevoxelsgivenTh. 15. In this ase, the liqueC
ismadeofasinglevoxel
x
,andwehaveK ∗ (C) = N 0 ∗ (x)
.Let
X ∈ V 3
be a reduible omplex whih is not omposed of a single voxel. By the very denition ofsuh a omplex, and by Th. 15, there exists a simple
voxel for
X
suh thatX \ {x}
is reduible. But ifx
is an arbitrary simple voxel forX
, thenX \ {x}
is not neessarily reduible. Suh a situation ours
when
X \ {x}
is an objetsuh as the so-alleddunehat [48℄ orhouse with two rooms [14℄, see also [34℄ for
algorithmiissues.
The following result shows that there is not enough
spaeforsuhobjetstobeinthe
K
-neighborhoodofa lique.Theorem17. Let
C ∈ V 3
suhthatC
is alique, andlet
S ⊆ K ∗ (C)
. IfS
isreduible,thenS \{x}
isreduiblewhenever
x
isasimplevoxel forS
.Let
X ∈ V 3
andletC
bealiquethatisessentialforX
. As a onsequene of Th. 16 and 17, determiningwhether
C
is regularor ritialforX
may bedone bythefollowinggreedyalgorithmRegularClique.
Algorithm1: RegularClique
Data:
X ∈ V 3
,aliqueC
whihisessentialforX
Result:
Regular S = K ∗ (C) ∩ X
;1
repeat 2
arbitrarilyseletavoxel
x
thatissimpleforS
;3
S = S \ {x}
;4
until stability ; 5
If
Card(S ) = 1
,thenRegular = T rue
;6
Else
Regular = F alse
;7
6 Cruial Kernels and Minimal
Skeletons
Ourgoalistodeneasubsetofavoxelomplex
X
thatisguaranteedtoinludeatleastonevoxelofeahlique
that is ritial for
X
. ByCor. 6, thissubset will beathinningof
X
.We want this subset to be as small as possible in
ordertoobtainaneientthinningproedure. Wealso
wantourmethodtobeindependentofarbitraryhoies,
in partiular of a hoie of spei voxels in a given
ritiallique. For thatpurpose thefollowingnotionof
amaximalritialfae wasintrodued[11,12℄.
Let
X ∈ V 3
andletx
bearitialfaeforX
. Wesaythat
x
isM
-ritial forX
ifx
is not aproperfae ofafae whihis ritial for
X
. Ifx
isM
-ritial forX
,we saythat thelique
x + X
isM
-ruial forX
. Wesaythatavoxel
x ∈ X
isM
-ruialforX
ifx
belongstoaliquewhihis
M
-ruial forX
.If
X ∈ V 3
, we denote byM(X)
the set omposedof all voxels that are
M
-ruial forX
,M(X )
isthe
M
-ruial kernel ofX
. Thus,M(X )
is theset ofvoxelsof
X
thatontainafaewhihisM
-ritialforX
.InFig.15(a),the
M
-ritialfaesofaomplexX
arehighlighted(seealsoFig. 10(b)wheretheritialfaes
of thesame omplexare given). The
M
-ruial kernelof
X
is givenFig. 15(b).Remark 18. Let
X ∈ V 3
and letC ⊆ X
. It may beseenthat
C
is anM
-ruial liqueforX
if andonly ifC
isaritialliqueforX
andnopropersubsetofC
isaliquewhihisritialfor
X
.Remark 19. Let
X ∈ V 3
andletC ⊆ X
. Ithasbeenproved that
C
is non-simple forX
wheneverC
is anM
-ruialliqueforX
,whihmeansthatthesetX \ C
is not a thinning of
X
. In fat, it was shown in [12℄(Th. 28), thatasubsetof
X
isanM
-ruiallique forX
if and onlyif it is aminimal non-simple set forX
,see [42, 21, 30, 24℄ forother propertiesof the so-alled
MNS's.
Bytheverydenition of an
M
-ruial voxel,M(X )
isguaranteedtoinludeatleastonevoxelofeahlique
whih is ritial for
X
, thusM(X )
is a thinning ofX
. Nevertheless, throughthe followingobservation, it may be seen that it is possible to obtain a subset ofvoxels of
X
whih fullls the onditions given in thevery beginning of this setion, and whih ontains less
voxelsthan
M(X )
.LetusonsideragainFig.15(a). Thevoxel
x
ontainsan
M
-ritial1-faeandthusitbelongstoM(X)
. Butthis1-faeisalsoinludedinthevoxel
y
,whihontainsa 2-fae whih is also
M
-ritial. This motivates thefollowingreursivedenition ofaruial voxelwhihis
basedondimension.
Denition20. Let
X ∈ V 3
andC
bead
-liquewhihisritialfor
X
. WesaythatC
isD
-ruial forX
if:i)
d = 3
;orii)
d ∈ {2, 1, 0}
andC
does not ontain any voxel be-longingto a
d ′
-lique that isD
-ruial forX
and suhthat
d ′ > d
.Wesaythatavoxel
x ∈ X
isD
-ruialforX
ifx
belongstoaliquethat is
D
-ruial forX
.Note that a voxel that is not simple neessarily
onstitutesa
3
-lique whih isD
-ruial. Observealsothat, if
d ′ 6= d
, a voxelx
that belongs to ad
-liquewhih is
D
-ruialannotbelongtoad ′
-liquewhihisalso
D
-ruial.If
X ∈ V 3
,wedenotebyD(X)
thesetomposedofallvoxelswhihare
D
-ruialforX
,D(X )
istheD
-ruialkernelof
X
.Again,bytheverydenitionofa
D
-ruialfae,D(X )
isguaranteedtoinludeatleastonevoxelofeahlique
whih is ritial for
X
. Thus, by Cor. 6,D(X)
is athinningof
X
.thinning,the
D
-ruial kernelorrespondsto anopera-tionwhihismorepowerfulthanthe
M
-ruialkernel.Theorem21. Let
X ∈ V 3
. TheD
-ruial kernelofX
isasubsetof its
M
-ruial kernel.Observe that the example of Fig. 15 (a) shows
that the above inlusion may be strit: the voxel
x
isM
-ruialforX
butnotD
-ruialforX
.Let
X ∈ V 3
. LethX 0 , ..., X k i
be thesequeneofdis-tint elements suh that
X 0 = X
,X k = D(X k )
, andX i = D(X i − 1 )
,fori = 1, ..., k
. ThesetX k
is themini-mal
D
-skeletonofX
.InFig. 15(), theomplex
Z = D(X )
ishighlighted, theomplexX
beingtheoneofFig.15(a). TheomplexZ ′ = D(Z)
isgivenin(d)and(e). WehaveZ ′ = D(Z ′ )
,thus
Z ′
istheminimalD
-skeletonofX
.Twootherexamplesofminimal
D
-skeletonsaregivenFig. 16. Wewill seein thenextsetion thataminimal
D
-skeletonmaybeobtainedbyanalgorithmwhihisaspeialinstaneofageneriparallelthinningsheme.
7 Three Generi Symmetri Thin-
ning Shemes
In this setion, we propose three generi thinning
shemes whih permit to ompute a wide variety of
skeletons.
Forthatpurpose,werstintroduethenotionofa
D
-ruialkernelwhihisonstrainedtopreserveagivenset
K
(Def. 23),andwhihgeneralizesthedenitionofaD
-ruial kernelpresentedin Se. 6. Infat, forthinning
objets, we often want to keep other voxels than the
onesthatareruial. Intuitively,theset
K
orrespondsto a set of features that we wantto be preserved bya
thinningalgorithm(likeextremitiesofurves,ifwewant
toobtainaurvilinearskeleton).
Allthethreeproposedthinningshemesarebasedon
suhonstrained
D
-ruial kernels.Denition 22. Let
X ∈ V 3
,K ∈ V 3
, and letC
bead
-liquewhihisritialforX
andsuhthatC ⊆ X \ K
.Wesaythat
C
isD
-ruialforhX, Ki
if:i)
d = 3
;orii)
d ∈ {2, 1, 0}
andC
does not ontain any voxelbe-longingto a
d ′
-liquewhihisD
-ruial forhX, Ki
andsuhthat
d ′ > d
.x y
(a)
(b) ()
(d) (e)
Figure 15: (a): A voxelomplex
X
and itsM
-ritialfaes (highlighted). (b): The omplex
Y = M(X )
ishighlighted. (): Theomplex
Z = D(X )
ishighlighted.(d): The omplex
Z ′ = D(Z)
is highlighted. (e): We haveZ ′ = D(Z ′ )
:Z ′
istheminimalD
-skeletonofX
.We say that a voxel
x ∈ X
isD
-ruial forhX, K i
ifx
is inK
orifx
belongs to aliquewhih isD
-ruialfor
hX, K i
.Denition 23. Let
X ∈ V 3
,K ∈ V 3
. Wedenote byD(X, K )
the set omposed of all voxels whih areD
-ruialfor
hX, Ki
,D(X, K )
istheD
-ruialkernelofX
onstrainedby
K
.From the previous denitions and from Cor. 6, we
immediatelydeduethefollowingpropositionwhihen-
suresthatanyonstrained
D
-ruialkernelofanobjetpreservesthetopologyofthisobjet.
Proposition 24. Let
X ∈ V 3
,K ∈ V 3
. TheD
-ruialkernelof
X
onstrainedbyK
isathinningofX
.By onstrution, the following proedure D-ruial
omputes the
D
-ruial kernel of an objetX ∈ V 3
onstrained by
K
. It onsists of 5 steps, eah stepmay be done in parallel. Voxels that are not simple
and ritial liques may be deteted with the hara-
terizations given Prop. 8 and Prop. 13, or with the
(a) (b)
Figure 16: Twovoxel omplexes and their minimal
D
-skeleton(in red).
unied haraterization given Th. 16 whih an be
implementedusingalgorithm RegularClique.
Algorithm2: D-ruial
Data:
X ∈ V 3
,K ∈ V 3
Result:
X
R 3
:=setofallvoxelsofX
whiharenotsimplefor1
X
orwhih areinK
;R 2
:=setofallvoxelsbelongingto any2
-lique2
whih isritialfor
X
andinludedinX \ R 3
;R 1
:=setofallvoxelsbelongingto any1
-lique3
whih isritialfor
X
andinludedinX \ (R 3 ∪ R 2 )
;R 0
:=setofallvoxelsbelongingto any0
-lique4
whih isritialfor
X
andinludedinX \ (R 3 ∪ R 2 ∪ R 1 )
;X
:=R 3 ∪ R 2 ∪ R 1 ∪ R 0
;5
Wepresentnowtherstthinningshemewhihon-
sistsinomputingiteratively,startingfrom
X
,D
-ruialkernelsonstrainedbyagivenset
K
,thisonstraintsetisxedfromthebeginning. ByProp. 24,theresultisa
thinningof
X
. Furthermore,theresultontainsK ∩ X
.Denition 25. Let
X ∈ V 3
,K ∈ V 3
. LethX 0 , ..., X k i
bethesequeneofdistintelementssuhthat
X 0 = X
,X i = D(X i − 1 , K )
fori = 1, ..., k
, andX k = D(X k , K )
.Theset
X k
istheD
-skeleton ofX
onstrainedbyK
.Observethat theminimal
D
-skeleton of anobjetS
isa
D
-skeletonofS
onstrainedbyK
,withK = ∅
.Notealsothat the
D
-skeletonofX
onstrainedbyK
maybeeasilyobtainedbyrepeating, untilstability,the
The seond thinning sheme is based on adynami
onstraint set. This onstraint set is dened thanks
to afuntion
Ψ
fromV 3
toV 3
whih is xed from the beginning. Thisfuntionallowsonetodene,ateahit-eration,theverysubsetoftheobjetwhihmustbepre-
servedduring thethinning proedure. Again,byProp.
24,theresultisathinningof
X
.Denition26. Let
Ψ
beafuntionfromV 3
toV 3
. LetX ∈ V 3
and lethX 0 , ..., X k i
bethesequeneofdistintelementssuhthat
X 0 = X
,X i = D(X i − 1 , Ψ(X i − 1 ))
fori = 1, ..., k
,andX k = D(X k , Ψ(X k ))
. ThesetX k
istheD
-skeletonofX
onstrainedbyΨ
.The third thinning sheme is based, as above, on a
dynamionstraintsetandamap
Ψ
fromV 3
toV 3
whih is xed from the beginning. Thedierene is that theonstraint set is built iterativelyfrom
Ψ
and from theonstraint obtained at the previous iteration step. By
Prop. 24,theresultisathinningof
X
.Denition27. Let
Ψ
beafuntionfromV 3
toV 3
. LetX ∈ V 3
,K ∈ V 3
, and lethX 0 , ..., X k i
be the sequeneofdistint elementssuh that
X 0 = X
,K 0 = K
,X i = D(X i − 1 , K i )
withK i = K i − 1 ∪ Ψ(X i − 1 )
fori = 1, ..., k
,and
X k = D(X k , K k ∪ Ψ(X k ))
. The setS k
is theD
-skeleton of
X
inrementallyonstrainedbyΨ
andK
.Again,it may beseenthat the
D
-skeletonofX
on-strainedby
Ψ
,ortheD
-skeletonofX
inrementallyon- strainedbyΨ
andK
,may beeasily obtainedby itera-tivelyapplyingtheproedureD-ruial.
8 Examples
In this setion, we give several examples of spei
instanesofthethree abovethinningshemes.
A rstbasi exampleof a
D
-skeleton onstrained byaset of voxels
K
is given Fig. 17. HereK
is madeof5 points, thus the
D
-skeleton of the original objetX
onstrained by
K
is a urvilinear shape. Note that aD
-skeletonmayontainsomesimplepointsthatdonotbelong to the onstrained set. In other words suh a
skeleton may be thik, whih is the prie to pay for
symmetry.
Aseond exampleofsuh askeleton isgivenFig. 18
where