HAL Id: hal-01695012
https://hal.univ-reims.fr/hal-01695012
Submitted on 26 Feb 2018
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 abroad, or from public or private research centers.
L’archive ouverte pluridisciplinaire
HAL, estdestiné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 publics ou privés.
Topology preserving warping of binary images:
Application to atlas-based skull segmentation
Sylvain Faisan, Nicolas Passat, Vincent Noblet, Renée Chabrier, Christophe Meyer
To cite this version:
Sylvain Faisan, Nicolas Passat, Vincent Noblet, Renée Chabrier, Christophe Meyer. Topology pre-
serving warping of binary images: Application to atlas-based skull segmentation. Medical Image
Computing and Computer-Assisted Intervention (MICCAI), 2008, New York, United States. pp.211-
218, �10.1007/978-3-540-85988-8_26�. �hal-01695012�
Appliation to atlas-based skull segmentation
SylvainFaisan
1
,NiolasPassat
1
,VinentNoblet
1
,RenéeChabrier
2
,and
ChristopheMeyer
3
1
LSIIT-UMRCNRS7005, StrasbourgIUniversity,Frane
2
LINC-UMRCNRS7191,StrasbourgIUniversity,Frane
3
UniversityHospitalofBesançon,Frane
Abstrat. Lots ofworkshave beenreentlyarriedout inthe eldof
non-rigidregistration toensuretheestimationof one-to-onemappings.
However, warping a binaryimagewith suhtransformationsmay alter
itsdisrete topologial properties if ommon resampling strategies are
onsidered. This paper proposes an original method for warping a bi-
naryimage aordingto someontinuousandbijetive mapping,while
preservingitsdisretetopologialproperties.Resultsobtainedintheon-
textofatlas-basedsegmentationhighlight theinterestofthe approah.
Indeed,themethodhasbeensuessfullyappliedtothesegmentationof
skullstruturesfromadatabaseof15CT-sans,providingbothgeomet-
riallyandtopologiallysatisfatoryresults.
1 Introdution
Imagewarpingis theproess ofapplying somegeometri transformationto an
image. Given an image M and a ontinuous deformation eld h, the goal is
to ompute the warped image S, so that for eah voxel v, S(v) = M(h(v)).
Sine h(v)doesnotneessarilyorrespondwith gridpoint, someinterpolation tehniquesarerequiredtoevaluateM(h(v)).
Althoughseveralimageinterpolationtehniques(linear,ubi)[1℄havebeen
proposed forgrey-levelimages, nospei attentionhas been paid to thease
ofbinarydata.Commoninterpolationtehniques,exeptthenearestneighbour
interpolation, donotguaranteetheresampled imageS toremain abinaryim-
age.Toirumventthis limitation,it is possibleto use athresholdingas post-
proessingofinterpolationtogetabinaryimage.Unfortunately,warpingadis-
rete image aordingto a ontinuous and bijetive ( i.e. topology-preserving)
deformationeld withthese ommon interpolation tehniques may fail in pre-
serving itsdisrete topologialproperties. Quitesurprisingly,manyworkshave
beendevotedtodevelopregistrationmethodsprovidingdeformationeldswhih
preservetheontinuoustopology,whilethetopologypreservationofdisreteob-
jetsdeformed bysuh elds hasnotyet beenonsidered.Based ontheseon-
siderations,weproposeanalgorithmforwarpingabinaryimageaordingtoa
ontextofsegmentation,wheretopologypreservationisaruialissue.Theseg-
mentationmethods dealingwith thisonstraintare oftenbasedontheonept
of 3-D simple points [2℄ ( i.e. points whose addition or removalfrom a binary
objetdoesnot alter its topology),whih an be loally haraterised in on-
stant time, leadingto fast algorithms. The basiideaof the proposed method
is to modifythe initialimage in ahomotopy-preservingfashion byadding and
removingsimplepointsuntilonvergingtoasolutionthatisasloseaspossible
totheontinuouswarpedimage.
The paper is organised as follows. In Setion 2, the proposed method is
desribed. In Setion 3,results in the ontext of atlas-based segmentation are
presented.ConlusionsandperspetivesareprovidedinSetion 4.
2 Method
ThemethodofwarpingabinaryimageM aordingto aontinuousandbije-
tivedeformationeldhan bestatedasthefollowingonstrainedoptimisation problem:
Sˆ=arg min
S∼Md(S, M, h), (1)
where S isabinary imageonstrainedtobetopologiallyequivalentto M and d(S, M, h)adistane betweenS and theontinuouswarpedimage M(h). This
paperpresentsa method to taklethis problem. We rstintroduein Se. 2.1
the distane d(S, M, h). Then, we explain in Se. 2.2 how to onstrain S to
betopologiallyequivalentto M during the optimisationproess. Finally, the optimisationstrategyisdetailedinSe.2.3.Aglobaloverviewofthemethodis
givenin Alg.1.
2.1 Costfuntion
Sine M and S are onstrained to have the same topology, there is a one-to-
one relation between onneted omponents (CCs) of M and the ones of S.
These CCs an be bakground CCs (BCCs) or objet CCs (OCCs), eah CC
orrespondingtoadistintlabel.WedeneN(v, S, M)as theCCin M whih
orresponds to theCC in S that enlosesvoxelv. Thedistane d(S, M, h) be-
tweenS and theontinuouswarpedimageM(h)is onsideredhereafteras the
ostfuntion,andisomputedasfollows:
d(S, M, h) =X
v∈S
ρ(v, S, M, h), with ρ(v, S, M, h) = min
v′∈N(v,S,M)kv′−h(v)k ,
(2)
where ρ(v, S, M, h) is the distane between h(v) and the CC of M whih is
assoiatedto theCCthat enlosesvin S.Tolarifytheidea,theomputation
of the ost funtion is illustrated in a 2-D ase in Fig. 1. ρ(v, S, M, h) an be
eiently evaluated by omputing the hamfer distane map of the CC of M
(the oneassoiatedtotheCCthatenlosesv inS)andbyevaluatingitsvalue
v1 v2 v3
v4 v5 v6 M S
first object connected component
second object connected component
background connected component
a
b c
Fig.1.Illustrationoftheomputationofρ(v, S, M, h)for 6pixels.M isomposedof
twoOCCsand ofoneBCC. ρ(v, S, M, h)is equalto0for v2,v3,and v5 sineh(v2), h(v3),and h(v5) belong to thesame CCas v2,v3, andv5, respetively. However, v6
belongsto theseond OCCwhereash(v6) belongstothe BCCso thatρ(v6, S, M, h)
isequaltob,namely,thedistanebetweenh(v6)andtheseondOCC(inM).Inthe
sameway,ρ(v1, S, M, h) =aandρ(v4, S, M, h) =c.
at position h(v). Notie that the hamfer distane map an beomputed one
timeforeah CC.
2.2 Topology handling
Atthe beginning ofthe method, S is initializedto M andis then modiedby
iterativeremoval/additionofsimplepoints.Thelabelofasimplepointishanged
ifit dereasesthe ostfuntion.Whenhangingthelabel ofv, itis assoiated
unambiguouslytoauniqueCC,sineitisasimplepoint.TodeterminethisCC,
twoimagesrepresentingthelabelsofS areused. Theyare updatedduring the
wholeproesswithS.
Theremoval/additionofsimplepointsanbenotappropriatedwhenavoxel
hastobetranslated.Thetranslationanbeinterpretedintermsofanaddition
(resp.aremoval)followedbyaremoval(resp.anaddition)ofsimplepoints.How-
ever,theostfuntion isestimatedaftereahlabelmodiation.Consequently,
therstmodiationmayinreasetheostfuntion,leadingtorefusethisoper-
ation, whereasbothmodiationsmaydereasetheostfuntion.That iswhy
the onept of topology-preservingtranslation is dened. This notionis inter-
pretedhereas thesimultaneous modiationofthestatusofaouple(v, v′)of
adjaentvoxelssuhthatS(v) = 1−S(v′).Toguaranteetopologypreservation, itissuienttohekthatv (resp.v′)issimpleforS andv′ (resp.v)issimple
in S′ obtainedfrom S after themodiationofv (resp.v′).The translationat voxelv is performedifit atuallyredues theost funtion.Ifthe pointv an
betranslatedin dierentways,thetranslationwhihminimisesatbesttheost
funtion ishosen.
2.3 Optimisationstrategy
Thepurposeoftheoptimisationstrategyistoreahtheminimalvalueoftheost
aspossible-geometriallysimilartotheontinuousdeformedimageM◦h.The
seletion of simple points to remove/add requires a list L whih ontains all
simplepointsof S presentingapositiveost. Theostisdened asthebenet
to hange thelabelat simplepoint v. Morepreisely, themodiationofS(v)
enablestodereasetheostfuntion fromtheostc(v, S, M, h):
c(v, S, M, h) =d(S, M, h)−d(S′, M, h) =ρ(v, S, M, h)−ρ(v, S′, M, h), (3)
whereS′ istheimageobtainedfromS bymodifyingthevalueat v.
During the dynamial sheme, when modifying a simple point v in S to
obtain a new image S′, there is no need to reompute the whole list L sine (i)c(v′, S, M, h) =c(v′, S′, M, h)forallvoxelsv′6=v,and (ii)simpleproperty
ofpointsanonlybemodiedinthe26-neighbourhoodofv. Consequently,the algorithmproeedsasfollowsuntilLisempty.Thepointofhighestost,denoted v0, is removed from the list. The label of S at v0 is then modied. This may
hangethesimplepointswhihareinthe26-neighbourhoodofv0:pointswhih
werenotsimple(resp.simple)andwhihbeomesimple(resp.non-simple)must
beaddediftheyhaveapositiveost(resp.removed)in(resp.from)L.
When ρ(v, S, M, h) = 0, the voxel v belongs to the orret CC. A ost ρ(v, S, M, h) > 0 an result from the fat that h(v) is at the interfae of ob-
jets (h being a ontinuous eld) or from topologial onstraints. However, it mayalsoresultfromtheonvergeneofthemethodtoaloalminimum.Todeal
with thisissue, wehekforallvoxelsv verifyingρ(v, S, M, h)>0 ifitis pos-
sible to translatev to redue theost funtion without topologymodiation.
Itmayhappenthat atranslationgeneratesnewsimplepointsintheneighbour-
hoodoftheinvolvedpoints,enablingtokeepdeformingtheurrentimageS by
lassial simplepointmodiation.
Inorder to avoid onvergene onto loal minima (resulting from geometri-
al or topologialonstraints) whih an appearwith large displaements, the
deformationisperformedinasmooth waybyonsideringN+ 1intermediate deformationeldsomputedfromh,namelyh(0),h(1),. . .,h(N)suhthat:
h(0)=Id, h(N)=h (i)
∀j∈[0, N−1], ∀v∈S, kh(j+1)(v)−h(j)(v)k<1 (ii) (4)
Constraint (ii) provides a lower bound for N: N ≥ maxv∈Skh(v)−vk . The
deformationeldsh(i) (0< i < N)arenally denedby:
∀v∈S, h(i)(v) =v+ i
N(h(v)−v). (5)
Theoptimisationsheme just desribedis ahievedbyonsidering sequentially
h(1),h(2),. . .,h(N).Thealgorithm isnallydesribedinAlg.1.
Input:M (binaryimagetowarpaordingtoh),h(transformationeld) Output:S(warpedbinaryimage)
S=M
(h(i))Ni=1=transformationeldsobtainedfromh
forh∗=h(1)toh(N)do
L=listofsimplepointswithpositiveostc(v, S, M, h)inS
repeat
whileL 6=∅do
v=pointofhighestostinL
S(v) = 1−S(v)/*swiththelabelofvinS*/
UpdateLonsideringthenewstatusofpointsintheneighbourhoodofv
endwhile
forallvoxelsvverifyingρ(v, S, M, h)>0andwhihanbetranslatedwithv′ byreduing
theostfuntion do
(S(v), S(v′)) = (1−S(v),1−S(v′))/*performthetranslation*/
UpdateLonsideringthenewstatusofpointsintheneighbourhoodofv, v′
endfor
untilL=∅
endfor
3 Appliation: skull segmentation from CT san data
3.1 Experiments
Oneimportant appliationof theproposed approah onernsatlas-based seg-
mentation [3℄. Suh methods rely on a binary model M of the strutures of
interestwhih hasbeenobtainedfrom thesegmentationof animage R.When
searhing the struturesof interest in anew imageI, the rststep onsistsin
estimatingadeformationeldhbyregisteringRontoI.Thestruturesofinter-
est in I, denoted S,are thenobtainedbytransformingM aordingto h.The
binary imagetopology-preservingdeformationisalso ofgreat interestsinewe
guaranteethat M andS havethesametopology.Inthesequel, themethod is
proposedforthesegmentationofskull struturesfromCT-sandata.
Theproposed strategyonsistsin deforming apre-proessedskull template
assoiatedtoarefereneCTimageR.Thistemplatemodelsthepartsoftheskull
whihhavetobesegmentedinageometriallyandtopologiallyorretfashion.
Inpartiular,itisomposedofoneonnetedomponent,andhasnoavitybut
tenholesorrespondingtotheforamenmagnum,thezygomatiarhes,et.(see
Fig.2). Thistemplate isatually thebinaryimage M whih hasto bewarped
aordingtoa3-D deformationeldhestimatedbyregisteringRontotheCT
imageI tobesegmented.
3.2 Results
Theeienyofthemethodisnotevaluatedintermsofsegmentationauray
sineitlargelydependsonthepreisionoftheestimateddeformationeld.The
goalof thisexperiment isto validatethe proposed method (P M) andto show
the benet of the approah with omparison to other interpolation methods,
namely, thenearestneighbour interpolation(M1), andthe linearinterpolation
Right:templatevisualisedwithitstopologialskeleton.Ithastobenotiedthat this
isapartial template:struturessuhasthevertebrae,for example,are notmodelled
sinetheirsegmentationisnotrequiredhere.
followed by a thresholding with a threshold of 0.5 (M2). These methods are
omparedfrom twopointsofview,atopologialoneandageometrialone.
From a topologial point of view, the average number of OCCs (see b0 in
Tab.1), ofholes (b1),and of avities(b2=numberof BCCs −1)are omputed
for the15transported segmentationmaps obtainedforeah method. Thepro-
posedmethod istheonlyone guaranteeingtopologypreservation: thetopology
is strongly altered by methods M1 and M2 (leading to onneted omponent
splitting,holeandavitygenerations,et.). Forexample,methodM1generates
on averagea number of 150 undesired avities in the segmentation result. To
illustrate this point, Fig. 3 presents a typial result for the proposed method
(right)andfortheM2 method(left).
Fromageometrialpointofview,thesegmentationmapsobtainedwiththe
proposed approah (Fig. 3,right)issatisfatory sinesimilar to the resultob-
erroneous holes
Fig.3.SegmentationresultsobtainedwithmethodM2(left)andtheproposedmethod
(right).Thetopologyhasbeenalteredintheleftimage,butpreservedintherightone.
Notethat thesurfaes are visuallynoisy sinethe real disreteresults are visualised
herewithoutmeshgeneration.
P1 P2 P3 P4 P5 d dmax b0 b1 b2
M1 61.87 30.43 7.39 0.31 0.00 3.70.10−3 0.87 1.33±0.59 109±51.0 150±71.0 M2 62.18 37.82 0.00 0.00 0.00 3.44.10−3 0.50 1.06±0.25 24.8±8.00 7.20±2.80 P M 62.19 37.77 0.04 10−3 10−4 3.44.10−3 1.06 1.00±0.00 10.0±0.00 0.00±0.00
Table 1. Comparisonof theproposed method(P M)from ageometrial(Pi,d,and dmax)andfromatopologial(bi)pointofviewwiththenearestneighbourinterpolation
(M1)andthelinearinterpolationwiththresholding(M2).Pi:ratio(%)ofpointsvfor
whih ρ(v, S, M, h) is in](i−1), i].25.10−2 mm (thisratio is omputedwithout on-
sideringvoxelsforwhihρ(v, S, M, h)isequalto0);d:meandistaneofρ(v, S, M, h); dmax:maximalvalueofρ(v, S, M, h)forthe15ases;b0(resp.b1,b2):numberofobjet
onnetedomponents(resp.holes,avities).
tainedwithM2(theM1andM2methodsprovidebyonstrutiongeometrially orret results). To provide quantitativeomparison, the following strategy is
used. As M is omposed of only one OCC and one BCC, the omputation of ρ(v, S, M, h) is possible for eah method (to ompute ρ(v, S, M, h) for the M1
and M2 approahes,voxels,for whih S(v) = 1, are assoiatedwith the OCC,
and the others orrespond to the BCC). We observe rstly that the ratios of
points forwhih ρ(v, S, M, h) = 0 are identialfor thethree methods (98.6%).
ResultsresumedinTab.1providetheratiosoftheotherpoints(namely1.4%)
intermsofdistane.Theinspetionoftheresultsshowsthatthethreemethods
arerelativelysimilar.Notethat themaximal distaneisalittlebit higher(but
still low)for theproposedmethod. More preisely,on the15onsidered ases,
5segmentationmaps haveauniquevoxelv whosevalueρ(v, S, M, h)islightly
greaterthanone (the maximalvalueenounteredin the15asesforρis1.06).
This is due to the fat that the topology preservation indues here geometri
onstraints.Finally,wean onludethat thegeometryis similarfor thethree
methods, butonlytheproposedapproahanorretlyhandle topology.Ithas
tobenotiedthatthealgorithmhasalsobeentestedwithobjetsomposedof
severalCCs.Resultsaresatisfatorybut notpresentedin thispaper.
3.3 Disussion
Weannotiethatmedialimagesegmentationmethods[46℄basedontopology-
preservingdeformationofabinarymodel 1
havebeenproposedinthelastyears.
Theygenerally relyonsimplealgorithmiproessesandhypotheses:(i)theyuse
monotoni transformations whih either removeor add simple points from/to
amodelM neessarilysurrounding/surroundedbyS,(ii)suhmodelsarepro-
posedforstrutureshavinganon-omplextopologyortopologiallysimplied,
and (iii) only simpledeformationfuntions (based ongrey-levelvaluesor dis- tanemaps)areonsidered.Thedeformationstrategyproposedhereleadstoa
1
Somemethodsarebasedonlabelmodels,unfortunatelywithseveralapproximations
tant improvements: themethods an use non-trivial topologial models whih
evolvein anon-monotoni andtopology-preservingfashionunder theguidane
ofomplex deformationfuntions.
4 Conlusion
A new method for warping a binary image in a disrete topology preserving
fashionaordingtoaontinuoustopologypreservingdeformationeldhasbeen
proposed.Furtherworks will onsistin extendingthis methodto label images.
Suh extensionwill requireto developasound theoretialframeworkfortopo-
logialmodellinganddeformationofsuhimages.
Theproposedmethodhasbeensuessfullyappliedtomedialimagesegmen-
tation. Anotherperspetiveis toonsider theproposed framework fordevising
strategieswhose behaviourmayevolve during thedeformationproess, forex-
ample by performing in parallel segmentation and registration, as proposed in
[9℄.
Referenes
1. Lehmann, T., Gonner, C., Spitzer, K.: Survey:interpolation methods inmedial
imageproessing. IEEETransationsonMedialImaging18 (11)(1999)10491075
2. Bertrand, G., Malandain,G.: A newharaterizationofthree-dimensionalsimple
points. PatternReognitionLetters15 (2)(1994)169175
3. Dawant, B., Hartmann,S., Thirion, J.P.,Maes, F.,Vandermeulen, D.,Demaerel,
P.: Automati3-D segmentationof internal struturesof thehead inMRimages
usingaombinationofsimilarityandfree-formdeformations:PartI,methodology
andvalidationonnormalsubjets. IEEETransations onMedialImaging18 (10)
(1999)902916
4. Mangin, J.F., Frouin, V., Bloh, I., Régis, J., López-Krahe, J.: From 3D mag-
netiresonaneimagestostruturalrepresentationsoftheortextopographyusing
topology preserving deformations. Journal of Mathematial Imaging and Vision
5 (4)(1995)297318
5. Dokládal,P.,Lohou,C.,Perroton,L.,Bertrand,G.: Liverbloodvesselsextration
bya3-Dtopologialapproah. InTaylor, C., Colhester,A.,eds.:MICCAI1999.
Volume1679 ofLNCS.,Springer,Heidelberg (1999)98105
6. Passat, N.,Ronse,C., Baruthio, J.,Armspah,J.P., Bos,M.,Fouher,J.: Using
multimodalMRdataforsegmentationandtopologyreoveryoftheerebralsuper-
ialvenoustree.InBebis,G.,Boyle,R.,Korain,D.,Parvin,B.,eds.:ISVC2005.
Volume3804 ofLNCS.,Springer,Heidelberg (2005)6067
7. Bazin, P.L.,Pham, D.: Topology-preserving tissuelassiationof magnetireso-
nanebrainimages. IEEETransationsonMedialImaging26 (4)(2007)487496
8. Miri, S., Passat, N., Armspah, J.P.: Topologially-based segmentation of brain
struturesfromT1MRI. In:ISMM2007.Volume2.(2007)3334
9. Faisan, S., Passat, N.,Noblet, V.,Chabrier, R.,Armspah,J.P., Meyer, C.: Seg-
mentationofheadbonesin3-DCTimagesfromanexample. In:ISBI2008.(2008)
8184