• Aucun résultat trouvé

Powerful Parallel Symmetric 3D Thinning Schemes Based on Critical Kernels

N/A
N/A
Protected

Academic year: 2022

Partager "Powerful Parallel Symmetric 3D Thinning Schemes Based on Critical Kernels"

Copied!
18
0
0

Texte intégral

(1)

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�

(2)

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 notionof

simple 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 illustrate

this notion by Fig. 1, whih displays a samesubset of

Z 2

under twousual representations: asa set of points (left),andasasetofpixels(right). Inthisexample,the

pixels(or points)

a, b, c

are simplebut

x, 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/pixels

a, b, c

aresimplewhile

x, y, z, t

arenot: deleting

x

would

reate a hole in

X

, deleting

y

would suppress a hole,

deleting

z

wouldsplitaonnetedomponent,anddelet-

ing

t

would suppressaonnetedomponent.

Themostnatural wayto thin anobjetonsistsof

removingsomeofitsborderpointsinparallel. Byparal-

lel,wemeanthat thesameoperationisexeutedsimul-

(3)

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

and

b

arebothsimple,and

removingthese 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 no

neighbor 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, additional

onditionsmustbeveriedwhendeleting 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

and

y

are

bothup voxels.

(4)

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 sets

F 1 0

,

F 1 1

, suh that

F 1 0 = {{a} | a ∈ Z }

,

F 1 1 = {{a, a + 1} | a ∈ Z }

. A subset

f

of

Z 3

whih is the Cartesianprodutofexatly

d

elementsof

F 1 1

and

(n−d)

elementsof

F 1 0

isalledafae ora

d

-faeof

Z 3

,

d

isthe

dimension of

f

,wewrite

dim(f ) = d

.

We denote by

F 3

the set omposed of all

d

-faes of

Z 3

, with

d ∈ {0, 1, 2, 3}

. A

d

-fae of

Z 3

isalled apoint if

d = 0

, a (unit) segment if

d = 1

, a (unit) square if

d = 2

,a(unit) ube if

d = 3

.

If

X

isanitesetoffaesin

F 3

,wewrite

X = {y ∈ F 3 | y ⊆ x

forsome

x ∈ X }

,

X

isthelosure of

X

. A

niteset

X

offaesin

F 3

isaubial omplex(in

F 3

)if

X = X

. We denoteby

C 3

the olletionomposedof allsuhomplexes.

Let

X

be anite set of faes in

F 3

. Wesay that

X

is a xel omplex (in

F 3

) if, for any

x, y ∈ X

, we have

y = x

whenever

y ⊆ x

. Wedenoteby

X 3

theolletion

omposedofallsuhomplexes. Observethat,if

X ∈ X 3

and

Y ⊆ X

,thenwehaveneessarily

Y ∈ X 3

.

If

X

isanitesetoffaesin

F 3

,wedenoteby

X +

the

setoffaes in

X

whiharemaximal forinlusionin

X

.

Thus, if

X ∈ C 3

,wehave

X + ∈ X 3

and

(X + ) = X

. If

X ∈ X 3

,wehave

X ∈ 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 +

, whihisaxel

omplexomposedof4segments,1square, and1ube.

(e):Theset

X

,whih isaubialomplex.

3 Simple Faes

Intuitively afae

x

of a xel omplex

X

is simple if its

removal from

X

does not hange the topology of

X

.

Inthissetion, weproposeadenition ofasimplefae

(5)

(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

and

x, y ∈ X

suh that

x ⊂ y

. If

y

is

the onlyfae of

X

distint from

x

that ontains

x

, we

saythat

(x, y)

isafree pair for

X

,andthattheubial

omplex

X \ {x, y}

isanelementary ollapseof

X

.

Let

X, Y ∈ C 3

. We say that

X

ollapses onto

Y

if

there exists asequene

hX 0 , ..., X k i

suh that

X 0 = X

,

X k = Y

,and

X i

isanelementaryollapseof

X 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

andlet

x ∈ X

. Wesaythat

x

issimplefor

X

if

X

ollapsesonto

(X \ {x})

. If

x

is simple for

X

, we say that

X \ {x}

is anelementary

thinningof

X

.

Let

X, Y ∈ X 3

. Wesaythat

Y

is athinning of

X

if

there exists asequene

hX 0 , ..., X k i

suh that

X 0 = X

,

X k = Y

, and

X i

is an elementary thinning of

X i 1

,

i = 1, ..., k

.

Observethat, if

Y

is athinning of

X

, then

X

ol-

lapsesonto

Y

.

4 Critial Kernels

Let

X

beaxelomplexin

F 3

. Asseenintheintrodu- tion, if we remove simultaneously (in parallel) simple

faesfrom

X

,wemayhangethetopologyoftheorig-

inal objet

X

. More preisely, we may obtain aset

Y

suhthat

X

doesnotollapseonto

Y

.

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

arealso

given. Thefae

x

issimplefor

X

,

y

issimplefor

Y

,but

z

isnotsimplefor

Z

,for

Z

doesnotollapseon

T

.

(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 of

X

are high-

lightedindark.

notalterthetopologyoftheseobjets[8℄. Thismethod

holds for omplexes of arbitrary dimension. As far as

weknow,thisistherstgeneralmethodwhihpermits

tothin arbitraryomplexesin asymmetriway.

Let

C ∈ X 3

. Wesaythat

C

isa

d

-lique,oralique,

if

∩{x ∈ C}

isa

d

-fae.

Denition 2. Let

X ∈ X 3

and let

x ∈ X

. We say

that

x

is an essential fae for

X

if

x

is preisely the

intersetion of all faes of

X

whih ontain

x

, i.e., if

x = ∩{y ∈ X | x ⊆ y}

. If

x

isanessentialfaefor

X

,we

write

x + X = {y ∈ X | x ⊆ y}

,andwesaythatthelique

x + X

isessentialfor

X

.

Let

x

be any fae of

X ∈ X 3

. We observethat

x

is

an essential fae for

X

and we have

x + X = {x}

. The

essentialfaesforthexelomplex

X

ofFig. 7(a)whih

arenotfaesof

X

arehighlightedFig. 7(b).

Denition3. Let

X ∈ X 3

andlet

x

beanessentialfae

for

X

. Wesaythat

x

isregularfor

X

if

x

is simplefor

(X \ x + X )∪ {x}

. Wesaythat

x

isritialfor

X

if

x

isnot

regularfor

X

. If

x

isritial (resp. regular)for

X

,we

saythat thelique

x + X

isritial(resp. regular)for

X

.

(6)

Observethat,inthepreviousdenition,

(X \x + X )∪{x}

isaxelomplex. If

x ∈ X

,wehave

(X \ x + X ) ∪ {x} = X

.

Thus, a fae

x ∈ X

is regular for

X

if and only if it

is simple for

X

. Observe also that a

0

-lique whih is

essential for

X

is neessarily ritial for

X

. 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 four

essential faes

x

,

y

,

z

,

t

(highlighted). (b): The xel omplex

(X \ x + X ) ∪ {x}

:

x

isregularfor

X

. ()Thexel

omplex

(X \ y + X ) ∪ {y}

:

y

isritialfor

X

. (d): Thexel

omplex

(X \ z X + ) ∪ {z}

:

z

isregularfor

X

. (e)Thexel

omplex

(X \ t + X ) ∪ {t}

:

t

isritialfor

X

.

Remark 4. Let

X ∈ X 3

, let

x

bean essentialfae for

X

, and let

C

be the lique

x + X

. If

C

is regular for

X

,

andif

x ∈ X

,then(asmentionedabove)

x

issimplefor

X

,and wehave

C = {x}

. Thus

X \ C

is athinning of

X

: weanremovesuharegularliquefromtheobjet

withoutaltering the topology. Now letus onsider the

asewhere

C

isregularbut

x 6∈ X

. Forthatpurpose,let

(a) (b)

Figure9: (a): Thexelomplex

X

ofFig. 7: thefaesof

X

whihareritialfor

X

(notsimple) arehighlighted.

(b): The faes whih are ritial for

X

and whih are

notfaes of

X

arehighlighted.

usonsiderthexelomplex

X

ofFig. 8(a)andthefaes

x

and

z

. Let

C

bethelique(madeof2squares)suh

that

C = x + X

,

C

isa regularlique for

X

. Weobserve

that

X \ C

is a thinning of

X

(see Fig. 8(b)). Now

let

C = z X +

(a liqueomposed of twoubes) whihis

alsoaregularliquefor

X

. Wenotethat

X \ C

hasnot

thesametopologyas

X

(

X

hastwotunnelsand

X \ C

has only one tunnel, see Fig. 8 (a) and (d)). Thus

X \ C

annotbeathinningof

X

. Infat,thedierene

betweenthesetwosituationsisthatthetwofaesof

x + X

areregular (i.e. simple) for

X

, whilethere is afae of

z + X

whih is not regular for

X

(the ube above

z

). In

thesequel of this setion, we will give someonditions

whih,intheontextofritialfaesandritialliques,

ensurethat agivensubset

Y ⊆ X

isathinningof

X

.

Thefollowingresultisaonsequeneofageneralthe-

oremwhihholdsforomplexesofarbitrarydimensions

(see[8℄).

If

X ∈ X 3

,theritialkernelof

X

istheubialomplex

omposedofallfaesthatareritialfor

X

andallfaes

thatareinludedinthese faes.

Theorem5. Let

X ∈ X 3

andlet

Y ⊆ X

.

Thexelomplex

Y

isathinningof

X

if

Y

ontainsthe

ritial kernelof

X

.

Inother words,thexelomplex

Y

isathinningof

X

if

Y

ontainsallfaes thatareritialfor

X

. SeeFig.

10 whih provides two examples of a omplex

Y

that

satisestheaboveproperty.

AsadiretonsequeneofTh. 5,weobtainthefollow-

ingpropertywhihwill beourguidelineforthesequel.

(7)

Corollary 6. Let

X ∈ X 3

andlet

Y ⊆ X

.

The xelomplex

Y

isathinningof

X

ifany lique that

isritial for

X

ontainsatleastonefaeof

Y

.

Weonludethis setionbygivingaharaterization

oftheomplexeswhih satisfytheonditionof Th.5.

Theorem 7. Let

X ∈ X 3

andlet

Y ⊆ X

. The ubial

omplex

Y

ontainsthe ritialkernelof

X

ifandonly

if any

Z

suhthat

Y ⊆ Z ⊆ X

isathinningof

X

.

(a) (b)

() (d)

Figure10: (a): Axelomplex

X

madeof12ubes. (b):

Thefaesthatareritialfor

X

arehighlighted. ()and (d) : twoxel omplexes

Y ⊆ X

and

Y ′′ ⊆ X

. By Th.

5,

Y

and

Y ′′

areboththinningsof

X

.

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(with

d = 3, 2, 1, 0

)whih

are 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 ube

isalso 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 the

entralpoint.

Let

d ∈ {0, 1, 2}

. We say that two voxels

x, y

are

d

-adjaent if

x ∩ y

is a

k

-fae, with

k ≥ d

. If

x

is a

voxel, we write

N d (x)

for the set of all voxels whih

are

d

-adjaent to

x

,

N d (x)

is the

d

-neighborhood of

x

.

Notethat, foreahvoxel

x

,wehave

x ∈ N d (x)

. Weset

N d (x) = N d (x) \ {x}

. SeeanillustrationFig. 11where

thevoxel

x

isrepresentedbyapoint.

Let

X, Y ∈ V 3

, with

Y ⊆ X

. We say that

Y

is

d

-onneted in

X

if, for any

x, y ∈ Y

, there exists a

sequene

hx 0 , ..., x k i

of voxels in

X

suh that

x 0 = x

,

x k = y

,and

x i

is

d

-adjaentto

x i 1

,

i = 1, ..., k

.

Wesaythat

X ∈ V 3

is

d

-onneted if

X

is

d

-onneted

in

X

.

A3-lique whih isritial for

X ∈ V 3

is aset om- posedsolelyofonevoxelwhihisnotsimplefor

X

. 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

, wewrite

X

for the

setofvoxelswhiharenotin

X

.

Proposition 8. Let

X ∈ V 3

andlet

x ∈ X

.

Thevoxel

x

issimplefor

X

ifandonly if:

1)Theset

N 0 (x)∩X

isnon-emptyand

0

-onneted;and

2)The set

N 2 (x) ∩ X

is non-emptyand

2

-onnetedin

N 1 (x) ∩ X

.

Let

d ∈ {0, 1, 2}

. Thevoxelswhihbelongto

d

-liques

thatareritialfor

X ∈ V 3

maybedetetedby:

1)Detetingall

d

-faesin

X

whihareessentialfor

X

(8)

(Def. 2);

2)Detetingallessential

d

-faes

x

whiharenotsimple

for

(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

is

notneessary.

Werst observethat, upto

π/2

rotations,thethree

ongurations

C 2

,

C 1

, and

C 0

given in Fig. 12 may

be used for the detetion of an arbitrary (regular or

ritial) lique whih is essential for a given voxel

omplex

X

in

V 3

(in this gure a voxel is represented byapoint). Infat,itmaybeseenthat:

-

C 2

may be used for deteting a 2-lique

C

whih is

essentialfor

X

: there is suh alique ifboth voxels

A

and

B

arein

X

. Inthisase,wehave

C = {A, B}

.

-

C 1

may be used for deteting a 1-lique

C

whih is

essentialfor

X

: there is suh aliqueif both

A

and

D

are in

X

or both

B

and

C

are in

X

. In this ase, we

have

C = {A, B, C, D} ∩ X

.

-

C 0

may be used for deteting a 0-lique

C

whih is

essentialfor

X

: there issuhaliqueif

A

and

H

,or

B

and

G

,or

C

and

F

,or

D

and

E

arein

X

. Inthisase,

wehave

C = {A, B, C, D, E, F, G, H} ∩ X

.

Wenowintrodueanotionofneighborhood whih is

fundamentalforourpurpose.

Denition 9. Let

S ∈ V 3

. The

K

-neighborhood of

S

,

written

K(S)

, is the set made of all voxels whih are

0

-adjaenttoeahvoxelin

S

. Weset

K (S) = K(S) \ S

.

We note that we have

K(S) = N 0 (x)

whenever

S

is

madeofasinglevoxel

x

. Wealsoobservethat:

-wehave

K(T ) ⊆ K(S)

whenever

S ⊆ T

;

-wehave

S ⊆ K(S)

whenever

S

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

), and

0

-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

-neighborhoodsfor

2

-liques(

K 2

),

1

-liques

(

K 1

), and

0

-liques(

K 0

). A voxelis representedby its entralpoint.

- we have

K(S) = K(T )

whenever

S

and

T

are two

liquessuhthat

∩{x ∈ S} = ∩{x ∈ T }

.

The

K

-neighborhoodsoftheongurations

C 2

,

C 1

,and

C 0

aregivenFig. 13. Observethat wehave

K (S ) = ∅

fortheonguration

C 0

.

Let

X ∈ V 3

. Asmentionedearlier,a

0

-liquewhihis

essentialfor

X

isneessarilyritial. Withthefollowing

twopropositions, wegivesomeharaterizationsfor

2

-

and

1

-liqueswhih areregular for

X

. Reallthat a

2

-

lique whih is essentialfor

X

is neessarily omposed

oftwovoxelswhihare

2

-adjaent(onguration

C 2

).

Proposition 10. Let

X ∈ V 3

, let

C = {x, y}

be a

2

-

liquewhih isessential for

X

. The lique

C

isregular

for

X

ifandonly if:

1) The set of voxels

K (C) ∩ X

is non-empty and

0

-

onneted; and

2)Thereexiststwo voxels

x , y ∈ K (C) ∩ X

suhthat

x ∈ N 2 (x)

,

y ∈ N 2 (y)

,and

x ∈ N 2 (y )

.

Proposition11. Let

X ∈ V 3

,let

C

bea

1

-liquewhih

isessential for

X

. The lique

C

isregularfor

X

if and

only if the set of voxels

K (C) ∩ X

is non-empty and

0

-onneted.

We are now in position to propose some masks for

detetingritial liques. These masks

K 2

,

K 1

,

K 0

are

(9)

y x

(a)

B A

(b)

Figure 14: (a): Thexel omplex

X

whih isthe oneof

Fig. 10 (a). Here, eah voxel of

X

is represented by a blak disk. (b): The mask

K 2

, with

A, B

mathing

voxels

x, y

of

X

. Conditionii) ofDef. 12 for

K 2

isnot

satisedbutonditioni)isfullledsinethesetofvoxels

{X 0 , ..., X 7 , Y 0 , ..., Y 7 } ∩ X

isnot

0

-onneted. Thus,by

Prop. 13,thevoxels

x, y

onstitutea

2

-liqueof

S

whih

isritial for

X

. SeealsoFig.10 (b)where theritial

fae

z = x ∩ y

ishighlighted,wehave

z X + = {x, y}

.

desribedusingFig.13. Foreahofthesemasks,wealso

onsider allthemasksobtainedfrom them byapplying

π/2

rotationsabouteahaxis. Weget7masks(3for

K 2

,

3for

K 1

, and 1for

K 0

). SeeFig. 14 foranillustration oftheuseofthemask

K 2

.

Denition 12. Let

X ∈ V 3

, and let

S

be a set of

voxelsof

X

. Wesaythat:

1)

S

mathes

K 2

in

X

if

S = {A, B}

;and

i)thesetofvoxels

{X 0 , ..., X 7 , Y 0 , ..., Y 7 } ∩X

iseither

emptyornot

0

-onneted;or

ii)foreah

i ∈ {0, 2, 4, 6}

,

X i

or

Y i

belongsto

X

.

2)

S

mathes

K 1

in

X

if

S = {A, B, C, D} ∩ X

;and

i)at leastoneof thesets

{A, D}

,

{B, C }

isasubset

of

X

;and

ii) we haveeither

[ U ∩ X 6= ∅

and

V ∩ X 6= ∅ ]

or

[ U ∩ X = ∅

and

V ∩ X = ∅ ]

, with

U = {X 0 , ..., X 3 }

and

V = {Y 0 , ..., Y 3 }

.

3)

S

mathes

K 0

in

X

if

S = {A, B, C, D, E, F, G, H}∩X

and at least one of the sets

{A, H}, {B, G}, {C, F }

,

{D, E}

isasubsetof

X

.

Prop. 13is adiretonsequeneofProp. 10and11.

Proposition 13. Let

X ∈ V 3

, let

S

be aset of voxels

in

X

,andlet

d ∈ {2, 1, 0}

. Theset

S

isa

d

-liquewhih

isritial for

X

ifandonly if

S

mathes

K d

in

X

.

Weonludethis setionbygivingaharaterization

ofsimplevoxelsandregularliquesthat isbasedonthe

denedreursivelyasfollows.

Denition14. Let

X ∈ V 3

. Wesaythat

X

isreduible ifeither:

i)

X

isomposed ofasinglevoxel;or

ii)thereexists

x ∈ X

suhthat

N 0 (x) ∩ X

isreduible

and

X \ {x}

isreduible.

Thefollowingtheorem allowsus to haraterizesim-

ple voxels withreduible sets, see also[23, 7℄ forother

reursiveapproahesforsimpliity.

Theorem15. Let

X ∈ V 3

andlet

x ∈ X

. Thevoxel

x

issimplefor

X

if andonlyif

N 0 (x) ∩ X

isreduible.

Thus, aomplex

X ∈ V 3

isreduibleifand onlyifit is possibleto redue

X

to a singlevoxel byiteratively removingsimplevoxels.

Morepreisely,

X ∈ V 3

isreduibleif andonlyifthere existsasequene

hx 0 , ..., x k i

suhthat

X = {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 let

C

be a lique that

isessential for

X

. The lique

C

isregularfor

X

if and

onlyif

K (C) ∩ X

isreduible.

Thus, Th. 16 makes it possible to haraterize, in

aunied way, regular

d

-liques, with

d = 3, 2, 1, 0

. In

partiular, for

d = 3

, we get the haraterization of simplevoxelsgivenTh. 15. In this ase, the lique

C

ismadeofasinglevoxel

x

,andwehave

K (C) = N 0 (x)

.

Let

X ∈ V 3

be a reduible omplex whih is not omposed of a single voxel. By the very denition of

suh a omplex, and by Th. 15, there exists a simple

voxel for

X

suh that

X \ {x}

is reduible. But if

x

is an arbitrary simple voxel for

X

, then

X \ {x}

is not neessarily reduible. Suh a situation ours

when

X \ {x}

is an objetsuh as the so-alleddune

hat [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

suhthat

C

is alique, and

let

S ⊆ K (C)

. If

S

isreduible,then

S \{x}

isreduible

whenever

x

isasimplevoxel for

S

.

(10)

Let

X ∈ V 3

andlet

C

bealiquethatisessentialfor

X

. As a onsequene of Th. 16 and 17, determining

whether

C

is regularor ritialfor

X

may bedone by

thefollowinggreedyalgorithmRegularClique.

Algorithm1: RegularClique

Data:

X ∈ V 3

,alique

C

whihisessentialfor

X

Result:

Regular S = K (C) ∩ X

;

1

repeat 2

arbitrarilyseletavoxel

x

thatissimplefor

S

;

3

S = S \ {x}

;

4

until stability ; 5

If

Card(S ) = 1

,then

Regular = T rue

;

6

Else

Regular = F alse

;

7

6 Cruial Kernels and Minimal

Skeletons

Ourgoalistodeneasubsetofavoxelomplex

X

that

isguaranteedtoinludeatleastonevoxelofeahlique

that is ritial for

X

. ByCor. 6, thissubset will bea

thinningof

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

andlet

x

bearitialfaefor

X

. Wesay

that

x

is

M

-ritial for

X

if

x

is not aproperfae of

afae whihis ritial for

X

. If

x

is

M

-ritial for

X

,

we saythat thelique

x + X

is

M

-ruial for

X

. Wesay

thatavoxel

x ∈ X

is

M

-ruialfor

X

if

x

belongstoa

liquewhihis

M

-ruial for

X

.

If

X ∈ V 3

, we denote by

M(X)

the set omposed

of all voxels that are

M

-ruial for

X

,

M(X )

is

the

M

-ruial kernel of

X

. Thus,

M(X )

is theset of

voxelsof

X

thatontainafaewhihis

M

-ritialfor

X

.

InFig.15(a),the

M

-ritialfaesofaomplex

X

are

highlighted(seealsoFig. 10(b)wheretheritialfaes

of thesame omplexare given). The

M

-ruial kernel

of

X

is givenFig. 15(b).

Remark 18. Let

X ∈ V 3

and let

C ⊆ X

. It may be

seenthat

C

is an

M

-ruial liquefor

X

if andonly if

C

isaritialliquefor

X

andnopropersubsetof

C

is

aliquewhihisritialfor

X

.

Remark 19. Let

X ∈ V 3

andlet

C ⊆ X

. Ithasbeen

proved that

C

is non-simple for

X

whenever

C

is an

M

-ruialliquefor

X

,whihmeansthattheset

X \ C

is not a thinning of

X

. In fat, it was shown in [12℄

(Th. 28), thatasubsetof

X

isan

M

-ruiallique for

X

if and onlyif it is aminimal non-simple set for

X

,

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

, thus

M(X )

is a thinning of

X

. Nevertheless, throughthe followingobservation, it may be seen that it is possible to obtain a subset of

voxels of

X

whih fullls the onditions given in the

very beginning of this setion, and whih ontains less

voxelsthan

M(X )

.

LetusonsideragainFig.15(a). Thevoxel

x

ontains

an

M

-ritial1-faeandthusitbelongsto

M(X)

. But

this1-faeisalsoinludedinthevoxel

y

,whihontains

a 2-fae whih is also

M

-ritial. This motivates the

followingreursivedenition ofaruial voxelwhihis

basedondimension.

Denition20. Let

X ∈ V 3

and

C

bea

d

-liquewhih

isritialfor

X

. Wesaythat

C

is

D

-ruial for

X

if:

i)

d = 3

;or

ii)

d ∈ {2, 1, 0}

and

C

does not ontain any voxel be-

longingto a

d

-lique that is

D

-ruial for

X

and suh

that

d > d

.

Wesaythatavoxel

x ∈ X

is

D

-ruialfor

X

if

x

belongs

toaliquethat is

D

-ruial for

X

.

Note that a voxel that is not simple neessarily

onstitutesa

3

-lique whih is

D

-ruial. Observealso

that, if

d 6= d

, a voxel

x

that belongs to a

d

-lique

whih is

D

-ruialannotbelongtoa

d

-liquewhihis

also

D

-ruial.

If

X ∈ V 3

,wedenoteby

D(X)

thesetomposedofall

voxelswhihare

D

-ruialfor

X

,

D(X )

isthe

D

-ruial

kernelof

X

.

Again,bytheverydenitionofa

D

-ruialfae,

D(X )

isguaranteedtoinludeatleastonevoxelofeahlique

whih is ritial for

X

. Thus, by Cor. 6,

D(X)

is a

thinningof

X

.

(11)

thinning,the

D

-ruial kernelorrespondsto anopera-

tionwhihismorepowerfulthanthe

M

-ruialkernel.

Theorem21. Let

X ∈ V 3

. The

D

-ruial kernelof

X

isasubsetof its

M

-ruial kernel.

Observe that the example of Fig. 15 (a) shows

that the above inlusion may be strit: the voxel

x

is

M

-ruialfor

X

butnot

D

-ruialfor

X

.

Let

X ∈ V 3

. Let

hX 0 , ..., X k i

be thesequeneofdis-

tint elements suh that

X 0 = X

,

X k = D(X k )

, and

X i = D(X i − 1 )

,for

i = 1, ..., k

. Theset

X k

is themini-

mal

D

-skeletonof

X

.

InFig. 15(), theomplex

Z = D(X )

ishighlighted, theomplex

X

beingtheoneofFig.15(a). Theomplex

Z = D(Z)

isgivenin(d)and(e). Wehave

Z = D(Z )

,

thus

Z

istheminimal

D

-skeletonof

X

.

Twootherexamplesofminimal

D

-skeletonsaregiven

Fig. 16. Wewill seein thenextsetion thataminimal

D

-skeletonmaybeobtainedbyanalgorithmwhihisa

speialinstaneofageneriparallelthinningsheme.

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),andwhihgeneralizesthedenitionofa

D

-

ruial kernelpresentedin Se. 6. Infat, forthinning

objets, we often want to keep other voxels than the

onesthatareruial. Intuitively,theset

K

orresponds

to 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 let

C

bea

d

-liquewhihisritialfor

X

andsuhthat

C ⊆ X \ K

.

Wesaythat

C

is

D

-ruialfor

hX, Ki

if:

i)

d = 3

;or

ii)

d ∈ {2, 1, 0}

and

C

does not ontain any voxelbe-

longingto a

d

-liquewhihis

D

-ruial for

hX, Ki

and

suhthat

d > d

.

x y

(a)

(b) ()

(d) (e)

Figure 15: (a): A voxelomplex

X

and its

M

-ritial

faes (highlighted). (b): The omplex

Y = M(X )

is

highlighted. (): Theomplex

Z = D(X )

ishighlighted.

(d): The omplex

Z = D(Z)

is highlighted. (e): We have

Z = D(Z )

:

Z

istheminimal

D

-skeletonof

X

.

We say that a voxel

x ∈ X

is

D

-ruial for

hX, K i

if

x

is in

K

orif

x

belongs to aliquewhih is

D

-ruial

for

hX, K i

.

Denition 23. Let

X ∈ V 3

,

K ∈ V 3

. Wedenote by

D(X, K )

the set omposed of all voxels whih are

D

-

ruialfor

hX, Ki

,

D(X, K )

isthe

D

-ruialkernelof

X

onstrainedby

K

.

From the previous denitions and from Cor. 6, we

immediatelydeduethefollowingpropositionwhihen-

suresthatanyonstrained

D

-ruialkernelofanobjet

preservesthetopologyofthisobjet.

Proposition 24. Let

X ∈ V 3

,

K ∈ V 3

. The

D

-ruial

kernelof

X

onstrainedby

K

isathinningof

X

.

By onstrution, the following proedure D-ruial

omputes the

D

-ruial kernel of an objet

X ∈ V 3

onstrained by

K

. It onsists of 5 steps, eah step

may 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

(12)

(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

:=setofallvoxelsof

X

whiharenotsimplefor

1

X

orwhih arein

K

;

R 2

:=setofallvoxelsbelongingto any

2

-lique

2

whih isritialfor

X

andinludedin

X \ R 3

;

R 1

:=setofallvoxelsbelongingto any

1

-lique

3

whih isritialfor

X

andinludedin

X \ (R 3 ∪ R 2 )

;

R 0

:=setofallvoxelsbelongingto any

0

-lique

4

whih isritialfor

X

andinludedin

X \ (R 3 ∪ R 2 ∪ R 1 )

;

X

:=

R 3 ∪ R 2 ∪ R 1 ∪ R 0

;

5

Wepresentnowtherstthinningshemewhihon-

sistsinomputingiteratively,startingfrom

X

,

D

-ruial

kernelsonstrainedbyagivenset

K

,thisonstraintset

isxedfromthebeginning. ByProp. 24,theresultisa

thinningof

X

. Furthermore,theresultontains

K ∩ X

.

Denition 25. Let

X ∈ V 3

,

K ∈ V 3

. Let

hX 0 , ..., X k i

bethesequeneofdistintelementssuhthat

X 0 = X

,

X i = D(X i 1 , K )

for

i = 1, ..., k

, and

X k = D(X k , K )

.

Theset

X k

isthe

D

-skeleton of

X

onstrainedby

K

.

Observethat theminimal

D

-skeleton of anobjet

S

isa

D

-skeletonof

S

onstrainedby

K

,with

K = ∅

.

Notealsothat the

D

-skeletonof

X

onstrainedby

K

maybeeasilyobtainedbyrepeating, untilstability,the

The seond thinning sheme is based on adynami

onstraint set. This onstraint set is dened thanks

to afuntion

Ψ

from

V 3

to

V 3

whih is xed from the beginning. Thisfuntionallowsonetodene,ateahit-

eration,theverysubsetoftheobjetwhihmustbepre-

servedduring thethinning proedure. Again,byProp.

24,theresultisathinningof

X

.

Denition26. Let

Ψ

beafuntionfrom

V 3

to

V 3

. Let

X ∈ V 3

and let

hX 0 , ..., X k i

bethesequeneofdistint

elementssuhthat

X 0 = X

,

X i = D(X i − 1 , Ψ(X i 1 ))

for

i = 1, ..., k

,and

X k = D(X k , Ψ(X k ))

. Theset

X k

isthe

D

-skeletonof

X

onstrainedby

Ψ

.

The third thinning sheme is based, as above, on a

dynamionstraintsetandamap

Ψ

from

V 3

to

V 3

whih is xed from the beginning. Thedierene is that the

onstraint set is built iterativelyfrom

Ψ

and from the

onstraint obtained at the previous iteration step. By

Prop. 24,theresultisathinningof

X

.

Denition27. Let

Ψ

beafuntionfrom

V 3

to

V 3

. Let

X ∈ V 3

,

K ∈ V 3

, and let

hX 0 , ..., X k i

be the sequene

ofdistint elementssuh that

X 0 = X

,

K 0 = K

,

X i = D(X i − 1 , K i )

with

K i = K i 1 ∪ Ψ(X i 1 )

for

i = 1, ..., k

,

and

X k = D(X k , K k ∪ Ψ(X k ))

. The set

S k

is the

D

-

skeleton of

X

inrementallyonstrainedby

Ψ

and

K

.

Again,it may beseenthat the

D

-skeletonof

X

on-

strainedby

Ψ

,orthe

D

-skeletonof

X

inrementallyon- strainedby

Ψ

and

K

,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 by

aset of voxels

K

is given Fig. 17. Here

K

is madeof

5 points, thus the

D

-skeleton of the original objet

X

onstrained by

K

is a urvilinear shape. Note that a

D

-skeletonmayontainsomesimplepointsthatdonot

belong 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

X

is asolid ube and

K

is asubset of

X

whih

Références

Documents relatifs

However, the non-parametric estimator using the bi- nomial kernel is competing with those using discrete symmetric triangular and Dirac type kernels for modelling pmf of count data

Supervised Morphology for Structure Tensor-Valued Images Based on Symmetric Divergence Kernels.. Santiago Velasco-Forero,

We prove local estimates on the probability of exiting balls, the Hölder continuity of harmonic functions and of heat kernels, and convergence of a sequence of such

Extend the concept of semilattices of semigroups (Clifford, Yamada,... Strong n-ary semilattices of

In the spectrally positive case, this identity allows with an elementary argument to compute fractional moments and to get series representations for the density.. We also prove

same generi thinning sheme, ultimate, urve or surfae skeletons that.. are uniquely dened (no arbitrary hoie

This paper describes an adapted parallelization methodology combining split, distribute and merge (SDM) strategy based upon the well-known principle of

Previously, an entire 3D convolutional neural network was factorized into sepa- rate spatial and temporal layers called factorized spatio-temporal convolutional networks [12].. This