版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Digital Image ProcessingChapter 9Morphological Image Processing2019.10What are Morphological Operations? Morphological operations come from the word “morphing”in Biology which means “changing a shape”.MorphingImage morphological operations are used to manipulateobject shapes such as thinning, thicke
2、ning, and filling.Binary morphological operations are derived fromset operations.(Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.Basic Set Operations Concept of a set in binary image morphology: Each set may represent one object. Each pixel (x,y) has its st
3、atus: belong to a set or not belong to a set. Translation and Reflection Operations A(A)zz = (z1,z2)TranslationReflectionB(Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.Logical Operations* *For binary images only(Images from Rafael C. Gonzalez and Richard
4、E. Wood, Digital Image Processing, 2nd Edition.Dilation Operations = Empty setA = Object to be dilatedB = Structuring elementDilate means “extend”Dilation Operations (cont.) StructuringElement (B)Original image (A)ReflectionIntersect pixelCenter pixelDilation Operations (cont.) Result of DilationBou
5、ndary of the “center pixels”where intersects A(Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.Example: Application of Dilation“Repair” broken characters(Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.Erosion Operat
6、ion A = Object to be erodedB = Structuring elementErosion means “trim”Erosion Operations (cont.) StructuringElement (B)Original image (A)Intersect pixelCenter pixelErosion Operations (cont.) Result of ErosionBoundary of the “center pixels”where B is inside A(Images from Rafael C. Gonzalez and Richar
7、d E. Wood, Digital Image Processing, 2nd Edition.Example: Application of Dilation and ErosionRemove small objects such as noiseDuality Between Dilation and ErosionProof:where c = complement(Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.Opening Operation or
8、= Combination of all parts of A that can completely contain B Opening eliminates narrow and small details and corners. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.Example of Opening (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Proc
9、essing, 2nd Edition.Closing Operation Closing fills narrow gaps and notches(Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.Example of Closing Duality Between Opening and ClosingProperties OpeningProperties ClosingIdem potent property: cant change any moreEx
10、ample: Application of Morphological Operations(Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.Finger print enhancement(Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.Boundary Extraction Original imageBoundary(Image
11、s from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.Region Filling Original imageResults of region fillingwhere X0 = seed pixel p(Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.Extraction of Connected Components where X0 = s
12、eed pixel pExample: Extraction of Connected Components X-ray imageof bonesThresholdedimageConnectedcomponents(Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.Hit-and-Miss TransformBrief DescriptionGeneral binary morphological operation that can be used to lo
13、ok for particular patterns in an image.A tool for shape detectionBasic operation for binary morphology Almost all the other binary morphological operators can be derived from Hit-and-Miss Transform.Common names: Hit-and-miss Transform, Hit-or-miss TransformHow It WorksThe structuring element used in
14、 the hit-and-miss can contain both foreground and background pixels.OperationsIf the foreground and background pixels in the structuring element exactly match foreground and background pixels in the image, then the pixel underneath the origin of the structuring element is set to the foreground color
15、.If it doesnt match, then that pixel is set to the background color.Hit-and-Miss TransformEffect of the hit-and-miss based right angle convex corner detectorAfter obtaining the locations of corners in each orientation, we can then simply OR all these images together to get the final result . Four st
16、ructuring elements used for corner finding in binary imagesHit-and-Miss TransformGuidelines for UseThe hit-and-miss transform is used to look for occurrences of particular binary patterns.It can be used to look for several patterns.Simply by running successive transforms using different structuring
17、elements, and then ORing the results together.The operations of erosion, dilation, opening, closing, thinning and thickening can all be derived from the hit-and-miss transform in conjunction with simple set operations.Hit-and-Miss TransformSome structuring elements that can be used for locating vari
18、ous binary features1) is used to locate isolated points in a binary image.2) is used to locate the end points on a binary skeleton.Note that this structuring element must be used in all its orientations, and thus the four hit-and-miss passes are required.3a) and 3b) are used to locate the triple poi
19、nts on a skeleton.Both structuring elements must be run in all orientations so eight hit-and-miss passes are required.Some applications of the hit-and-miss transformHit-and-Miss TransformThe triple points (points where three lines meet) of the skeletonThe hit-and-miss transform outputs single foregr
20、ound pixels at each triple point by structuring elements 3a) and 3b).This image was dilated once using a cross-shaped structuring element in order to mark these isolated points clearly, and this was then ORed with the original skeleton.Hit-and-Miss TransformThe end points of the skeletonThe hit-and-
21、miss transform outputs single foreground pixels at each end point by structuring element 2).This image was dilated once using a square-shaped structuring element, and this was then ORed with the original skeleton.Hit-and-Miss Transform(Images from Rafael C. Gonzalez and Richard E. Wood, Digital Imag
22、e Processing, 2nd Edition.Hit-or-Miss Transformation *where X = shape to be detected W = window that can contain XHit-or-Miss Transformation (cont.) *(Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.(Images from Rafael C. Gonzalez and Richard E. Wood, Digita
23、l Image Processing, 2nd Edition.Convex Hull *Convex hull has no concave part.Convex hullAlgorithm:whereExample: Convex Hull (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.(Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Ed
24、ition.Thinning *Example: Thinning (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.Make an object thinner.(Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.Thickening *.Make an object thicker*(Images from Rafael C. Go
25、nzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.Skeletons Dot lines are skeletons of thisstructureSkeletons (cont.) withwherek timesandSkeletons (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.(Images from Rafael C. Gonzalez and Richard E.
26、 Wood, Digital Image Processing, 2nd Edition.Pruning *= thinning= finding end points= dilation at end points= Pruned resultExample: Pruning Original imagePruned resultAfter Thinning3 timesEnd pointsDilationof end points(Tables from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2n
27、d Edition.Summary of Binary Morphological Operations Summary of Binary Morphological Operations (cont.) (Tables from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.Summary of Binary Morphological Operations (cont.) (Tables from Rafael C. Gonzalez and Richard E. Wood, D
28、igital Image Processing, 2nd Edition.Summary of Binary Morphological Operations (cont.) (Tables from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.(Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.Basic Types of Structuring Ele
29、mentsx = dont care(Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.Gray-Scale Dilation 2-D Case1-D CaseSubimageOriginal imageMoving windowMaxOutput imageGray-Scale Dilation (cont.) +Reflectionof BStructuring element BNote: B can be any shape and subimage mus
30、t have the same shape as reflection of B.(Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.Gray-Scale Erosion2-D Case1-D CaseSubimageOriginal imageMoving windowMinOutput imageGray-Scale Erosion (cont.) -BStructuring element BNote: B can be any shape and subim
31、age must have the same shape as B.(Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.Example: Gray-Scale Dilation and ErosionOriginal imageAfter dilationAfter erosionDarkerBrighter(Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2
32、nd Edition.Gray-Scale OpeningOpening cuts peaks(Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.Gray-Scale ClosingClosing fills valleys(Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.Example: Gray-Scale Opening and
33、ClosingOriginal imageAfter closingAfter openingReduce whiteobjectsReduce darkobjects(Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.Gray-scale Morphological Smoothing Smoothing: Perform opening followed by closingOriginal imageAfter smoothing(Images from Ra
34、fael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.Morphological Gradient Original imageMorphological Gradient(Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.Top-Hat Transformation Original imageResults of top-hat transform(Images f
35、rom Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.Example: Texture Segmentation Application Algorithm:1. Perform closing on the image by using successively larger structuring elements until small blobs are vanished.2. Perform opening to join large blobs together3. Perform intensity thresholdingOriginal imageSegmented resultSmall blobLarge blob(Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Pr
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 圣诞快乐小班节庆活动策划计划
- 旅游酒店客服工作技巧
- 能源行业工程师工作总结
- 内部培训的体系建设与优化计划
- 加强与合作伙伴的合作共同成长计划
- 工程项目安全管理目标分解考核记录附安全生产责制、目标责任考核表
- 2023年云南省丽江市公开招聘警务辅助人员辅警笔试自考题2卷含答案
- 2021年河南省焦作市公开招聘警务辅助人员辅警笔试自考题1卷含答案
- 2024年广西壮族自治区防城港市公开招聘警务辅助人员辅警笔试自考题1卷含答案
- 2023年云南省曲靖市公开招聘警务辅助人员辅警笔试自考题2卷含答案
- 61850基础技术介绍0001
- 陶瓷色料的技术PPT课件
- 幼儿园食品安全工作计划四篇
- 课程设计YA32-350型四柱万能液压机液压系统设计
- 围堰高喷防渗墙工程监理实施细则
- (精心整理)系动词练习题
- 体彩排列五历史数据
- 中国工业数据库介绍
- 弱电智能化设计服务建议书(共35页)
- 中国银监会关于规范中长期贷款还款方式的通知
- 通信工程外文文献(共12页)
评论
0/150
提交评论