计算机图像图形外文翻译外文文献英文文献图像分割_第1页
计算机图像图形外文翻译外文文献英文文献图像分割_第2页
计算机图像图形外文翻译外文文献英文文献图像分割_第3页
计算机图像图形外文翻译外文文献英文文献图像分割_第4页
计算机图像图形外文翻译外文文献英文文献图像分割_第5页
已阅读5页,还剩10页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

./原文出处DigitalImageProcessing2/E图像分割前一章的资料使我们所研究的图像处理方法开始发生了转变。从输人输出均为图像的处理方法转变为输人为图像而输出为从这些图像中提取出来的属性的处理方法〔这方面在1.1节中定义过>。图像分割是这一方向的另一主要步骤。分割将图像细分为构成它的子区域或对象。分割的程度取决于要解决的问题。就是说当感兴趣的对象已经被分离出来时就停止分割。例如,在电子元件的自动检测方面,我们关注的是分析产品的图像,检测是否存在特定的异常状态,比如,缺失的元件或断裂的连接线路。超过识别这此元件所需的分割是没有意义的。异常图像的分割是图像处理中最困难的任务之一。精确的分割决定着计算分析过程的成败。因此,应该特别的关注分割的稳定性。在某些情况下,比如工业检测应用,至少有可能对环境进行适度控制的检测。有经验的图像处理系统设计师总是将相当大的注意力放在这类可能性上。在其他应用方面,比如自动目标采集,系统设计者无法对环境进行控制。所以,通常的方法是将注意力集中于传感器类型的选择上,这样可以增强获取所关注对象的能力,从而减少图像无关细节的影响。一个很好的例子就是,军方利用红外线图像发现有很强热信号的目标,比如移动中的装备和部队。图像分割算法一般是基于亮度值的不连续性和相似性两个基本特性之一。第一类性质的应用途径是基于亮度的不连续变化分割图像,比如图像的边缘。第二类的主要应用途径是依据事先制定的准则将图像分割为相似的区域,门限处理、区域生长、区域分离和聚合都是这类方法的实例。本章中,我们将对刚刚提到的两类特性各讨论一些方法。我们先从适合于检测灰度级的不连续性的方法展开,如点、线和边缘。特别是边缘检测近年来已经成为分割算法的主题。除了边缘检测本身,我们还会讨论一些连接边缘线段和把边缘"组装"为边界的方法。关于边缘检测的讨论将在介绍了各种门限处理技术之后进行。门限处理也是一种人们普遍关注的用于分割处理的基础性方法,特别是在速度因素占重要地位的应用中。关于门限处理的讨论将在几种面向区域的分割方法展开的讨论之后进行。之后,我们将讨论一种称为分水岭分割法的形态学图像分割方法。这种方法特别具有吸引力,因为它将本章第一部分提到的几种分割属性技术结合起来了。我们将以图像分割的应用方面进行讨论来结束本章。10.1间断检测在本节中,我们介绍几种用于检测数字图像中三种基本的灰度级间断技术:点、线和边缘。寻找间断最一般的方法是以3.5节中描述的方式对整幅图像使用一个模板进行检测。图10-1所示的3x3模板,这一过程包括计算模板所包围区域灰度级与模板系数的乘积之和。就是说,关于式<3.5.3>,在图像中任意点的模板响应由下列公式给出:〔10.1.1图10-1一个一般的3*3模板这里Zi是与模板系数Wi相联系的像素的灰度级。照例,模板响应是它的中心位置。有关执行模板操作的细节在3.5节中讨论。10.1.1点检测在一幅图像中,孤立点的检测在理论上是简单的。使用如图10-2<a>所示的模板,如果|R|≥T<10.1.2>我们说在模板中心的位置上已经检测到一个点。这里T是一个非负门限,R由式<10.1.1>给出。基本上,这个公式是测量中心点和它的相邻点之间加权的差值。基本思想就是:如果一个孤立的点<此点的灰度级与其背景的差异相当大并且它所在的位置是一个均匀的或近似均匀的区域>与它周围的点很不相同,则很容易被这类模板检测到。注意,图10-2<a>中的模板同图3.39<d>中给出的模板在拉普拉斯操作方而是相同的。严格地讲,这里强调的是点的检测。即我们着重考虑的差别是那些足以识别为孤立点的差异<由T决定>。注意,模板系数之和为零表示在灰度级为常数的区域,模板响应为零。-1-1-1-18-1-1-1-1〔a〔b〔c〔d图10-2〔a点检测模板,〔b带有通孔的涡轮叶片的X射线,〔c点检测的结果,〔d使用式〔10.1.2得到的结果〔原图由X-TEK系统公司提供例10.1图像中孤立点的检浏我们以图10-2<b>功为辅助说明如何从一幅图中将孤立点分割出来.这幅X射线图显示了一个带有通孔的喷气发动抓涡枪叶片,通孔位于圈像的右上象限。在孔中只嵌有一个黑色像素。图10-2<c>是将点检测模板应用于X射线图像后得到的结果.图10-2<d>显示了当T取图10-2<c>中像素最高绝衬值的90%时,应用式<10.1.2>所得的结果<门限选择将在10.3节中详细讨论>。图中的这个单一的像素清晰可见<这个像素被人为放大以便印刷后可以看到>。由于这类检测是基于单像素间断,并且检测器模板的区域有一个均匀的背景,所以这个检测过程是相当有专用性的当这一条件不能满足时,本章中计论的其他方法会更适合检测灰度级间断10.1.2线检测复杂程度更高一级的检测是线检测,考虑图10-3中显示的模板。如果第l个模板在图像中移动,这个模板将对水平方向的线条<一个像素宽度>有更强的响应。在一个不变的背景上,当线条经过模板的中间一行时会产生响应的最大值。画一个元素为1的简单阵列,并且使具有不同灰度级<如5>的一行水平穿过阵列,可以很容易验证这一点。同样的实验可以显示出图10-3中的第2个模板对于45°方向线有最佳响应;第3个模板对于垂直线有最佳响应;第4个模板对于-45°方向线有最佳响应;这些方向也可以通过注释每个模板的优选方向来设置,即在这些方向上用比别的方向更大的系数<为2>设置权值。注意每个模板系数相加的总和为零,表示在灰度级恒定的区域来自模板的响应为零。-12-12.-12-1-12-1-1-12-1-12-1-12-122-1-1-1-1-12-12-12-12-1-12-1-1-1-12-1-1-1Horizontal+45°Vertical-45°图10-3线模板令R1,R2,R3和R4。从左到右代表图10-3中模板的响应,这里R的值由式<10.1.1>给出。假设4个模板分别应用于一幅图像,在图像中心的点,如果|Ri|>|Rj|,j≠i,则此点被认为与在模板i方向上的线更相关。例如,如果在图中的一点有|Ri|>|Rj|,j=2,3,4,我们说此特定点与水平线有更大的联系。换句话说,我们可能对检测特定方向上的线感兴趣。在这种情况下,我们应使用与这一方向有关的模板,并设置该模板的输出门限,如式<10.1.2>所示。换句话说,如果我们对检测图像中由给定模板定义的方向上的所有线感兴趣.只需要简单地通过整幅图像运行模板,并对得到的结果的绝对值设置门限即可。留下的点是有最强响应的点。对于一个像素宽度的线,这些响应最靠近模板定义的对应方向。下列例子说明了这一过程。例10.2特定方向上的线检测图10-4<a>显示了一幅电路接线模板的数字化<二值的>图像。假设我们要找到一个像素宽度的并且方向为-45°的线条。基于这个假设,使用图10-3中最后一个模板。图10-4<b>显示了得到的结果的绝对值。注意,图像中所有水平和垂直的部分都被除去了。并且在图10-4<b>中所有原图中接近-45°方向的部分产生了最强响应。〔a〔b〔c图10-4线检测的说明。〔a二进制电路接线模板,〔b使用-45°线检测器处理后得到的绝对值,〔c对图像〔b设置门限得到的结果为了决定哪一条线拟合模板最好,只需要简单地对图像设置门限。图10-4<c>显示了使门限等于图像中最大值后得到的结果。对于与这个例子类似的应用,让门限等于最大值是一个好的选择,因为输入图像是二值的,并且我们要寻找的是最强响应。图10-4<c>显示了在白色区所有通过门限检测的点。此时,这一过程只提取了一个像素宽且方向为-45°的线段<图像中在左上象限中也有此方向上的图像部分,但宽度不是一个像素>。图10-4<c>中显示的孤立点是对于模板也有相同强度响应的点。在原图中,这些点和与它们紧接着的相邻点,是用模板在这些孤立位置上生成最大响应的方法来定向的。这些孤立点也可以使用图10-2<a>中的模板进行检测,然后删除,或者使用下一章中讨论的形态学腐蚀法删除。10.1.3边缘检侧尽管在任何关于分割的讨论中,点和线检测都是很重要的,但是边缘检测对于灰度级间断的检测是最为普遍的检测方法。本节中,我们讨论实现一阶和二阶数字导数检测一幅图像中边缘的方法。在3.7节介绍图像增强的容中介绍过这些导数。本节的重点将放在边缘检测的特性上。某些前面介绍的概念在这里为了叙述的连续性将进行简要的重述。基本说明在3.7.1节中我们非正式地介绍过边缘。本节中我们更进一步地了解数字化边缘的概念。直观上,一条边缘是一组相连的像素集合。这些像素位于两个区域的边界上。然而,我们已经在2.5.2节中用一定的篇幅解释了一条边缘和一条边界的区别。从根本上讲,如我们将要看到的,一条边缘是一个"局部"概念,而由于其定义的方式,一个区域的边界是一个更具有整体性的概念。给边缘下一个更合理的定义需要具有以某种有意义的方式测量灰度级跃变的能力。我们先从直观上对边缘建模开始。这样做可以将我们引领至一个能测量灰度级有意义的跃变的形式体系中。从感觉上说,一条理想的边缘具有如图10-5<a>所示模型的特性。依据这个模型生成的完美边缘是一组相连的像素的集合<此处为在垂直方向上>,每个像素都处在灰度级跃变的一个垂直的台阶上<如图形中所示的水平剖面图>。实际上,光学系统、取样和其他图像采集的不完善性使得到的边缘是模糊的,模糊的程度取决于诸如图像采集系统的性能、取样率和获得图像的照明条件等因素。结果,边缘被更精确地模拟成具有"类斜面"的剖面,如图10-5<b>所示。斜坡部分与边缘的模糊程度成比例。在这个模型中,不再有细线<一个像素宽的线条>。相反,现在边缘的点是包含于斜坡中的任意点,并且边缘成为一组彼此相连接的点集。边缘的"宽度"取决于从初始灰度级跃变到最终灰度级的斜坡的长度。这个长度又取决于斜度,斜度又取决于模糊程度。这使我们明白:模糊的边缘使其变粗而清晰的边缘使其变得较细。图10-6<a>显示的图像是从图10-5<b>的放大特写中提取出来的。图10-6<b>显示了两个区域之间边缘的一条水平的灰度级剖面线。这个图形也显示出灰度级剖面线的一阶和二阶导数。当我们沿着剖面线从左到右经过时,在进人和离开斜面的变化点,一阶导数为正。在灰度级不变的区域一阶导数为零。在边缘与黑色一边相关的跃变点二阶导数为正,在边缘与亮色一边相关的跃变点二阶导数为负,沿着斜坡和灰度为常数的区域为零。在图10-6<b>中导数的符号在从亮到暗的跃变边缘处取反。〔a〔b图10-5〔a理想的数字边缘模型,〔b斜坡数字边缘模型。斜坡部分与边缘的模糊程度成正比图10-6<a>由一条垂直边缘分开的两个不同区域,<b>边界附近的细节显示了一个灰度级剖面图和一阶与二阶导数的剖面图由这些现象我们可以得到的结论是:一阶导数可以用于检测图像中的一个点是否是边缘的点<也就是判断一个点是否在斜坡上>。同样,二阶导数的符号可以用于判断一个边缘像素是在边缘亮的一边还是暗的一边。我们注意到围绕一条边缘,二阶导数的两条附加性质<1>对图像中的每条边缘二阶导数生成两个值<一个不希望得到的特点>;<2>一条连接二阶导数正极值和负极值的虚构直线将在边缘中点附近穿过零点。将在本节后面说明,二阶导数的这个过零点的性质对于确定粗边线的中心非常有用。最后,注意到某些边缘模型利用了在进人和离开斜坡地方的平滑过渡<习题10.5>。然而,我们在接下来的讨论中将得出同样的结论。而且,这一点从我们使用局部检测进行处理就可以很明显地看出<因此,2.5.2节中对于边缘的局部性质进行了说明>。尽管到此为止我们的注意力被限制在一维水平剖面线围,但同样的结论可以应用于图像中的任何方向上。我们仅仅定义了一条与任何需要考察的点所在的边缘方向相垂直的剖面线,并如前面讨论的那样,对结果进行了解释。注:出自DigitalImageProcessing2ndEdition.PrenticeHall.ImageSegmentationThematerialinthepreviouschapterbeganatransitionfromimageprocessingmethodswhoseinputandoutputareimages,tomethodsinwhichtheinputsareimages,buttheoutputsareattributesextractedfromthoseimages<inthesensedefinedisSection1.1>.Segmentationisanothermajorstepinthatdirection.Segmentationsubdividesanimageintoitsconstituentregionsorobjects.Theleveltowhichthesubdivisioniscarrieddependsontheproblembeingsolved.Thatis,segmentationshouldstopwhentheobjectsofinterestinanapplicationhavebeenisolated.Forexample,intheautomatedinspectionofelectronicassemblies,interestliesinanalyzingimagesoftheproductswiththeobjectiveofdeterminingthepresenceorabsenceofspecificanomalies,suchasmissingcomponentsorbrokenconnectionpaths.Thereisnopointincarryingsegmentationpastthelevelofdetailrequiredtoidentifythoseelements.Segmentationofnontrivialimagesisoneofthemostdifficulttasksinimageprocessing.Segmentationaccuracydeterminestheeventualsuccessorfailureofcomputerizedanalysisprocedures.Forthisreason,considerablecareshouldbetakentoimprovetheprobabilityofruggedsegmentation.Insomesituations,suchasindustrialinspectionapplications,atleastsomemeasureofcontrolovertheenvironmentispossibleattimes.Theexperiencedimageprocessingsystemdesignerinvariablypaysconsiderableattentiontosuchopportunities.Inotherapplications,suchasautonomoustargetacquisition,thesystemdesignerhasnocontroloftheenvironment.Thentheusualapproachistofocusonselectingthetypesofsensorsmostlikelytoenhancetheobjectsofinterestwhilediminishingthecontributionofirrelevantimagedetail.Agoodexampleistheuseofinfraredimagingbythemilitarytodetectobjectswithstrongheatsignatures,suchasequipmentandtroopsinmotion.Imagesegmentationalgorithmsgenerallyarebasedononeoftwobasicpropertiesofintensityvalues:discontinuityandsimilarity.Inthefirstcategory,theapproachistopartitionanimagebasedonabruptchangesinintensity,suchasedgesinanimage.Theprincipalapproachesinthesecondcategoryarebasedonpartitioninganimageintoregionsthataresimilaraccordingtoasetofpredefinedcriteria.Thresholding,regiongrowing,andregionsplittingandmergingareexamplesofmethodsinthiscategory.Inthischapterwediscussanumberofapproachesinthetwocategoriesjustmentioned.Webeginthedevelopmentwithmethodssuitablefordetectinggrayleveldiscontinuitiessuchaspoints,lines,andedges.Edgedetectioninparticularhasbeenastapleofsegmentationalgorithmsformanyyears.Inadditiontoedgedetectionperse,wealsodiscussmethodsforconnectingedgesegmentsandfor"assembling"edgesintoregionboundaries.Thediscussiononedgedetectionisfollowedbytheintroductionofvariousthresholdingtechniques.Thresholdingalsoisafundamentalapproachtosegmentationthatenjoysasignificantdegreeofpopularity,especiallyinapplicationswherespeedisanimportantfactor.Thediscussiononthresholdingisfollowedbythedevelopmentofseveralregion-orientedsegmentationapproaches.Wethendiscussamorphologicalapproachtosegmentationcalledwatershedsegmentation.Thisapproachisparticularlyattractivebecauseitcombinesseveralofthepositiveattributesofsegmentationbasedonthetechniquespresentedinthefirstpartofthechapter.Weconcludethechapterwithadiscussionontheuseofmotioncuesforimagesegmentation.10.1DetectionofDiscontinuitiesInthissectionwepresentseveraltechniquesfordetectingthethreebasictypesofgray-leveldiscontinuitiesinadigitalimage:points,lines,andedges.ThemostcommonwaytolookfordiscontinuitiesistorunamaskthroughtheimageinthemannerdescribedinSection3.5.Forthe3x3maskshowninFig.10.1,thisprocedureinvolvescomputingthesumofproductsofthecoefficientswiththegraylevelscontainedintheregionencompassedbythemask.Thatis.withreferencetoEq.<3.5-3>.theresponseofthemaskatanvpointintheimageisgivenby〔10.1.1FIGURE10.1Ageneral3x3mask.wherez;isthegraylevelofthepixelassociatedwithmaskcoefficientWi.Asusual,theresponseofthemaskisdefinedwithrespecttoitscenterlocation.ThedetailsforimplementingmaskoperationsarediscussedinSection3.5.10.1.1PointDetectionThedetectionofisolatedpointsinanimage.isstraightforwardinprinciple.UsingthemaskshowninFig.10.2<a>,wesaythatapointhasbeendetectedatthelocationonwhichthemaskiscenteredif|R|≥T<10.1.2>whereTisanonnegativethresholdandRisgivenbyEq.<10.1-1>.Basically,thisformulationmeasurestheweighteddifferencesbetweenthecenterpointanditsneighbors.Theideaisthatanisolatedpoint<apointwhosegraylevelissignificantlydifferentfromitsbackgroundandwhichislocatedinahomogeneousornearlyhomogeneousarea>willbequitedifferentfromitssurroundings,andthusbeeasilydetectablebythistypeofmask.NotethatthemaskinFig.10.2<a>isthesameasthemaskshowninFig.3.39<d>inconnectionwithLaplacianoperations.However,theemphasishereisstrictlyonthedetectionofpoints.Thatis,theonlydifferencesthatareconsideredofinterestarethoselargeenough<asdeterminedbyT,tobeconsideredisolatedpoints.Notethatthemaskcoefficientssumtozero,indicatingthatthemaskresponsewillbezeroinareasofconstantgraylevel.-1-1-1-18-1-1-1-1〔a〔b〔c〔dFIGURE10.2<a>Pointdetectionmask.<b>X-rayimageofaturbinebladewithaporosity.<c>Resultofpointdetection.<d>ResultofusingEq.<10.1-2>.<OriginalimagecourtesyofX-TEKSystemsLtd.>EXAMPLE10.1:Detectionofisolatedpointsinanimage.WeillustratesegmentationofisolatedpointsfromanimagewiththeaidofFig.10.2<6>,whichshowsanX-rayimageofajet-engineturbinebladewithaporosityintheupper,rightquadrantoftheimage.Thereisasingleblackpixelembeddedwithintheporosity.Figure10.2<c>istheresultofapplyingthepointdetectormasktotheX-rayimage,andFig.10.2<d>showstheresultofusingEq.<10.1.2>withTequalto90%ofthehighestabsolutepixelvalueoftheimageinFig.10.2<c>.<ThresholdselectionisdiscussedindetailinSection10.3>Thesinglepixelisclearlyvisibleinthisimage<thepixelwasenlargedmanuallysothatitwouldbevisibleafterprinting>.This-typeofdetectionprocessisratherspecializedbecauseitisbasedonsingle-pixeldiscontinuitiesthathaveahomogeneousbackgroundintheareaofthedetectormask.Whenthisconditionisnotsatisfied,othermethodsdiscussedinthischapteraremoresuitablefordetectinggray-leveldiscontinuities.10.1.2LineDetectionThenextlevelofcomplexityislinedetection.ConsiderthemasksshowninFig.10.3.Ifthefirstmaskweremovedaroundanimage,itwouldrespondmorestronglytolines<onepixelthick>orientedhorizontally.Withaconstantbackground,themaximumresponsewouldresultwhenthelinepassedthroughthemiddlerowofthemask.Thisiseasilyverifiedbysketchingasimplearrayof1'swithalineofadifferentgraylevel<say,5's>runninghorizontallythroughthearray.AsimilarexperimentwouldrevealthatthesecondmaskinFig.10.3respondsbesttolinesorientedat+450;thethirdmasktoverticallines;andthefourthmasktolinesinthe-450direction.Thesedirectionscanbeestablishedalsobynotingthatthepreferreddirectionofeachmaskisweightedwithalargercoefficient<i.e.,2>thanotherpossibledirections.Notethatthecoefficientsineachmasksumtozero,indicatingazeroresponsefromthemasksinareasofconstantgraylevel.-1-12-1-122-1-1-1-12-12-1-12-1-1-1-1-12-12-12-12-1-12-1-1-1-12Horizontal+45°Vertical-45°FIGURE10.3Linemasks.LetR1,R2,R3,andR4denotetheresponsesofthemasksinFig.10.3,fromlefttoright,wheretheR'saregivenbyEq.<10.1-1>.Supposethatthefourmasksarerunindividuallythroughanimage.If,atacertainpointintheimage,|Ri|>|Rj|,forallj≠i,thatpointissaidtobemorelikelyassociatedwithalineinthedirectionofmaski.Forexample,ifatapointintheimage,|Ri|>|Rj|,forj=2,3.4,thatparticularpointissaidtobemorelikelyassociatedwithahorizontalline.Alternatively,wemaybeinterestedindetectinglinesinaspecifieddirection.Inthiscase,wewouldusethemaskassociatedwiththatdirectionandthresholditsoutput,asinEq.<10.1.2>.Inotherwords,ifweareinterestedindetectingallthelinesinanimageinthedirectiondefinedbyagivenmask,wesimplyrunthemaskthroughtheimageandthresholdtheabsolutevalueoftheresult.Thepointsthatareleftarethestrongestresponses,which,forlinesonepixelthick,correspondclosesttothedirectiondefinedbythemask.Thefollowingexampleillustratesthisprocedure.EXAMPLE10.2:DetectionoflinesinaspecifieddirectionFigure10.4<a>showsadigitized<binary>portionofawire-bondmaskforanelectroniccircuit.Supposethatweareinterestedinfindingallthelinesthatareonepixelthickandareorientedat-45".Forthispurpose,weusethelastmaskshowninFig.10.3.TheabsolutevalueoftheresultisshowninFig.10.4<b>.Notethatallverticalandhorizontalcomponentsoftheimagewereeliminated,andthatthecomponentsoftheoriginalimagethattendtowarda-45°direction〔a〔b〔cFIGURE10.4Illustrationoflinedetection<a>Binarywirebondmask.<b>Absolutevalueofresultafterprocessingwith-45°linedetector.<c>Resultofthresholdingimage.<b>producedthestrongestresponsesinFig.10.4<b>.Inordertodeterminewhichlinesbestfitthemask,wesimplythresholdthisimage.TheresultofusingathresholdequaltothemaximumvalueintheimageisshowninFig.10.4<c>.Themaximumvalueisagoodchoiceforathresholdinapplicationssuchasthisbecausetheinputimageisbinaryandwearelookingforthestrongestresponses.Figure10.4<c>showsinwhiteallpointsthatpassedthethresholdtest.Inthiscase,theprocedureextractedtheonlylinesegmentthatwasonepixelthickandorientedat-450<theothercomponentoftheimageorientedinthisdirectioninthetop,leftquadrantisnotonepixelthick>.TheisolatedpointsshowninFig.10.4<c>arepointsthatalsohadsimilarlystrongresponsestothemask.Intheoriginalimage,thesepointsandtheirimmediateneighborsareorientedinsuchaswaythatthemaskproducedamaximumresponseatthoseisolatedlocations.TheseisolatedpointscanbedetectedusingthemaskinFig.10.2<a>andthendeleted,ortheycouldbedeletedusingmorphologicalerosion,asdiscussedinthelastchapter.10.1.3EdgeDetectionAlthoughpointandlinedetectioncertainlyareimportantinanydiscussiononsegmentation,edgedetectionisbyfarthemostcommonapproachfordetectingmeaningfuldiscontinuitiesingraylevel.Inthissectionwediscussapproachesforimplementingfirst-andsecond-orderdigitalderivativesforthedetectionofedgesinanimage.WeintroducedthesederivativesinSection3.7inthecontextofimageenhancement.Thefocusinthissectionisontheirpropertiesforedgedetection.Someoftheconceptspreviouslyintroducedarerestatedbrieflyhereforthesakecontinuityinthediscussion.BasicformulationEdgeswereintroducedinformallyinSection3.7.1.Inthissectionwelookattheconceptofadigitaledgealittlecloser.Intuitively,anedgeisasetofconnectedpixelsthatlieontheboundarybetweentworegions.However,wealreadywentthroughsomelengthinSection2.5.2toexplainthedifferencebetweenanedgeandaboundary.Fundamentally,asweshallseeshortly,anedgeisa"local"conceptwhereasaregionboundary,owingtothewayitisdefined,isamoreglobalidea.Areasonabledefinitionof"edge"requirestheabilitytomeasuregray-leveltransitionsinameaningfulway.Westartbymodelinganedgeintuitively.Thiswillleadustoaformalismtowhich"meaningful"transitionsingraylevelscanbemeasured.Intuitively,anidealedgehasthepropertiesofthemodelshowninFigure10.5<a>.Anidealedgeaccordingtothismodelisasetofconnectedpixels<intheverticaldirectionhere>,eachofwhichislocatedatanorthogonalsteptransitioningraylevel<asshownbythehorizontalprofileinthefigure>.Inpractice,optics,sampling,andotherimageacquisitionimperfectionsyieldedgesthatareblurred,withthedegreeofblurringbeingdeterminedbyfactors.suchasthequalityoftheimageacquisitionsystem,thesamplingrate,andilluminationconditionsunderwhichtheimageisacquired.Asaresult,edgesaremorecloselymodeledashavinga"ramplike"profile,suchastheoneshowninFigure10.5<b>.Theslopeoftherampisinverselyproportionaltothedegreeofblurringintheedge.Inthismodel.wenolongerhaveathin<onepixelthick>path.Instead,anedgepointnowisanypointcontainedintheramp,andanedgewouldthenbeasetofsuchpointsthatarcconnected.The"thickness"oftheedgeisdeterminedbythelengthoftheramp.asittransitionsfromaninitialtoafinalgraylevel.Thislengthisdeterminedbytheslope,which.inturnisdeterminedbythedegreeofblurring.Thismakessense:Blurrededgestendtobethickandsharpedgestendtobethin.Figure10.6<a>showstheimagefromwhichtheclose-upinFig.10.5<b>wasextracted.Figure10.6<b>showsahorizontalgray-levelprofileoftheedgebetweenthetworegions.Thisfigurealsoshowsthefirstandsecondderivativesofthegray-levelprofile.Thefirstderivativeispositiveatthepointsoftransitionintoandoutoftherampaswemovefromlefttorightalongtheprofile:itisconstantforpointsintheramp:andiszeroinareasofconstantgraylevel.丁hesecondderivativei

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论