Sie sind auf Seite 1von 2

Chapter6Thinning

AlgorithmsforImageProcessingandComputerVision,SecondEdition
byJ.R.Parker
JohnWiley&Sons2011Citation

Recommend?

6.2TheMedialAxisTransform
Notes

Possiblythefirstdefinitionofaskeletonisthatof[Blum,1967]indefiningthemedialaxisfunction(MAF).The
MAFtreatsallboundarypixelsaspointsourcesofawavefront.Eachofthesepixelsexcitesitsneighborswith
adelaytimeproportionaltodistance,sothatthey,too,becomepartofthewavefront.Thewavepassesthrough
eachpointonlyonce,andwhentwowavesmeettheycanceleachother,producingacorner.Themedialaxisis
thelocusofthecorners,andformstheskeleton(Blumsayslineofsymmetry)oftheobject.TheMAFusesboth
timeandspaceinformation,andcanbeinvertedtogivebacktheoriginalpicture.Itispossibletoimplementthis
directly,butitisdifficult:Whatisneededistoconvertthecontinuoustransformtoadiscreteone.Thisinvolves
variousapproximationsinvolvingthedistancefunctiononadiscretegrid.ThisallowstheMAFtobeappliedtoa
rasterimage,forwhichthemedialaxisisnotdefined.
Onewaytofindthemedialaxisistousetheboundaryoftheobject.ForanypointPintheobject,locatethe
closestpointontheboundary.Ifthereismorethanoneboundarypointattheminimumdistance,thenPison
themedialaxis.Thesetofallsuchpointsisthemedialaxisoftheobject.Unfortunately,thismustbedoneata
veryhighresolution,orEuclideandistanceswillnotbeequalwhentheyshouldbe,andskeletalpixelswillbe
missed.
Anapproximationtothemedialaxisonasampledgridismoreeasilyobtainedintwosteps.First,computethe
distancefromeachobjectpixeltothenearestboundarypixel.Thisinvolvescomputingthedistancetoall
boundarypixels.Next,theLaplacianofthedistanceimageiscalculated,andpixelshavinglargevaluesare
thoughttobelongtothemedialaxis.
Thewaythatdistanceismeasuredhasanimpactontheresult,asshowninFigure6.1.Themedialaxiswas
foundforaTshapedobjectusingEuclideandistance,4distance,and8distance.4distancebetweenpixelsA
andBisdefinedtobetheminimumnumberofhorizontalandverticalmovesneededtogetfromAtoB.8
distanceistheminimumnumberofpixelmoves,inanyofthestandardeightdirections,neededtogetfromAto
B.Therearecleardifferencesinthemedialaxisdependingonwhichwaydistanceiscalculated,butanyofthem
couldbeusedasaskeleton.

Figure6.1:Theeffectofthedistancefunctiononthemedialaxis.(a)Medialaxis(above)andskeleton
(below)oftheTshapedobject,using4distance.(b)Medialaxisandskeletoncomputedusing8distance.
(c)ComputedusingEuclideandistance

TheskeletonoftheTproducedbythemedialaxisdoesnothavethesameshapeastheT,nordoesitneedit.
Themainconcerniswhethertheskeletoncharacterizesthebasicshapeoftheobjectsomehow.Ontheother
hand,asimpleexampleexposesafundamentalproblemwiththemedialaxisasaskeleton.Mostpeoplewould
agreethattheskeletonsoftwoobjectsthataresimilartoeachothershould,inturn,besimilar.Figure6.2shows
anobjectthatdiffersfromFigure6.1ainonlyasinglepixelthemedialaxesoftheseobjects,ontheotherhand,
differsubstantially.

Figure6.2:Asinglepixeldifferencebetweentwoobjectscancreatealargedifferenceintheirskeletons.(a)
TheTshapedobject,butwithonelessblackpixel.(b)Theskeletonofthenewobject,quitedifferentfrom
thoseinFigure6.1
MostvisionresearcherswouldagreethatthewaytheMAFisappliedtodiscrete,rasterimagesoftendoesnot
yieldanidealskeleton,andtakestoolongtocompute.Itdoes,however,formthebasisofagreatmanythinning
methods,andinthatregardisaveryimportantconcept.

UseofcontentonthissiteissubjecttotherestrictionssetforthintheTermsofUse.
PageLayoutandDesign2015SkillsoftIrelandLimitedAllrightsreserved,individualcontentisownedby
respectivecopyrightholder.
Feedback|PrivacyandCookiePolicy(Updated12/2014)|RSSfeed|v.4.0.78.153

Das könnte Ihnen auch gefallen