ImageVerifierCode 换一换
格式:PDF , 页数:107 ,大小:4.60MB ,
资源ID:11068834      下载积分:20 金币
快捷注册下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

开通VIP
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.zixin.com.cn/docdown/11068834.html】到电脑端继续下载(重复下载【60天内】不扣币)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

开通VIP折扣优惠下载文档

            查看会员权益                  [ 下载后找不到文档?]

填表反馈(24小时):  下载求助     关注领币    退款申请

开具发票请登录PC端进行申请

   平台协调中心        【在线客服】        免费申请共赢上传

权利声明

1、咨信平台为文档C2C交易模式,即用户上传的文档直接被用户下载,收益归上传人(含作者)所有;本站仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。所展示的作品文档包括内容和图片全部来源于网络用户和作者上传投稿,我们不确定上传用户享有完全著作权,根据《信息网络传播权保护条例》,如果侵犯了您的版权、权益或隐私,请联系我们,核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
2、文档的总页数、文档格式和文档大小以系统显示为准(内容中显示的页数不一定正确),网站客服只以系统显示的页数、文件格式、文档大小作为仲裁依据,个别因单元格分列造成显示页码不一将协商解决,平台无法对文档的真实性、完整性、权威性、准确性、专业性及其观点立场做任何保证或承诺,下载前须认真查看,确认无误后再购买,务必慎重购买;若有违法违纪将进行移交司法处理,若涉侵权平台将进行基本处罚并下架。
3、本站所有内容均由用户上传,付费前请自行鉴别,如您付费,意味着您已接受本站规则且自行承担风险,本站不进行额外附加服务,虚拟产品一经售出概不退款(未进行购买下载可退充值款),文档一经付费(服务费)、不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
4、如你看到网页展示的文档有www.zixin.com.cn水印,是因预览和防盗链等技术需要对页面进行转换压缩成图而已,我们并不对上传的文档进行任何编辑或修改,文档下载后都不会有水印标识(原文档上传前个别存留的除外),下载后原文更清晰;试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓;PPT和DOC文档可被视为“模板”,允许上传人保留章节、目录结构的情况下删减部份的内容;PDF文档不管是原文档转换或图片扫描而得,本站不作要求视为允许,下载前可先查看【教您几个在下载文档中可以更好的避免被坑】。
5、本文档所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用;网站提供的党政主题相关内容(国旗、国徽、党徽--等)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
6、文档遇到问题,请及时联系平台进行协调解决,联系【微信客服】、【QQ客服】,若有其他问题请点击或扫码反馈【服务填表】;文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“【版权申诉】”,意见反馈和侵权处理邮箱:1219186828@qq.com;也可以拔打客服电话:0574-28810668;投诉电话:18658249818。

注意事项

本文(数字图像处理课件lecture3.pdf)为本站上传会员【天****】主动上传,咨信网仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知咨信网(发送邮件至1219186828@qq.com、拔打电话4009-655-100或【 微信客服】、【 QQ客服】),核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载【60天内】不扣币。 服务填表

数字图像处理课件lecture3.pdf

1、1 2 There are many definitions:Segmentation subdivides an image into its constituent regions or objects(Gonzales,pp567)Segmentation is a process of grouping together pixels that have similar attributes(Efford,pp250)Image Segmentation is the process of partitioning an image into non-intersecting regi

2、ons such that each region is homogeneous and the union of no two adjacent regions is homogeneous(Pal,pp1277)What is Image Segmentation?Segmentation is typically associated with pattern recognition problems.It is considered the first phase of a pattern recognition process and is sometimes also referr

3、ed to as object isolation.3 Image Processing for Pattern Recognition Feature Extraction Acquisition Preprocessing Classification Post Processing Scaling Centering Enhancement Filtering(Transform)Binarization(Thresholding)Edge detection Thinning Pixel Feature(Histogram)Boundary Projection Moments Tra

4、nsformation Matching Tree Classification Neural Network 4 5 1.Detecting Edges Using Differencing Marks Image points of high contrast can be detected by computing intensity differences in local image regions.High contrast High contrast 6 Typically,such points form the border(or edge)between different

5、 objects or scene parts.Neighborhood templates or masks can be used.We start by using one-dimensional(1D)signals.The 1D signals could just be rows or columns of a 2D image.(a)(b)Border 7 Differencing 1D Signals Mathematic formula of derivatives:22)(,)(dxydxfdxdyxf=Masks can be used to represent of t

6、he derivatives of a signal.11)()()()(=iiiiixxxfxfxxfxfxi f(x)x 0 xi-1 f(xi)f(xi-1)Assuming that the sample spacing is x=1,the derivative of f(x)can be approximated by )()()(1iiixfxfxf Given that the signal S is a sequence of samples from some function f,then 8 Si-1 Si Si+1 Si+2 S=Si+1-Si Si-Si-1 S=S

7、i+1-2Si+Si-1 S=f(x)S The first(S)and second(S)difference signals are scaled approximations to the first and second derivatives of the signal S Masks M and M represent the derivative operations -1+1 M=-2+1+1 M=9 The first derivative of f(x)can be approximated by applying the mask M=-1,1 to the sample

8、s in S can obtain an output signal S.Its convenient to think of the values of S as occurring in between the samples of S.A high absolute value of Si indicates where the signal is undergoing rapid change or high contrast.Signal S itself can be differentiated a second time using mask M to produce outp

9、ut S”,which corresponds to the second derivative of the original function f.The approximate second derivative can be computed by applying the mask M to the original sequence of samples S.1,1mask 1+=+=MiSiSiS 1,2,1 mask 12 1 )1()1(1=+=+=+=MiSiSiSiSiSiSiSiSiSiS10-1+1 M=Examples S1=12 12 12 12 12 24 24

10、 24 24 24 S1 M=0 0 0 0 12 0 0 0 0 0 S1i i 0 12 24 S1i i 0 12 S1 is an upward step edge,the first derivative mask M can be used to detect the edge(border)11 S2=24 24 24 24 24 12 12 12 12 12 S2 M=0 0 0 0 -12 0 0 0 0 0 S2i i 0 12 24 S2i i 0-12 S2 is a downward step edge,the first derivative mask M can

11、be used to detect the edge(border)S3i i 0 12 24 S3=12 12 12 12 24 12 12 12 12 12 S3 M=0 0 0 12-12 0 0 0 0 0 12 S3i i 0-12 S3 is a bright impulse or line,the first derivative mask M can be used to detect the edge(border)12 S4=12 12 12 12 15 18 21 24 24 24 S4 M=0 0 0 3 3 3 3 0 0 0 S4i i 0 3 S4 is an u

12、pward ramp,the first derivative mask M can be used to detect the edge(border)S4i i 0 12 24 15 18 21 24 13 Use of another common first derivative mask,which has 3 coordinates and is centered at signal point Si,so that it computes the signal difference across the adjacent values.First Derivative Mask

13、M=-1,0,1 0-1+1 M=Because x=2,it will give a high estimate of the actual derivative unless the result is divided by 2.Moreover,this mask is known to give a response on perfect step edges that is 2 samples wide.14 Examples S1=12 12 12 12 12 24 24 24 24 24 S1 M=0 0 0 0 12 12 0 0 0 0 S1i i 0 12 24 S1 is

14、 an upward step edge,the first derivative mask M can be used to detect the edge(border)with 2 samples wide.0-1+1 M=S1i i 0 12 15 S2=24 24 24 24 24 12 12 12 12 12 S2 M=0 0 0 0 -12-12 0 0 0 0 S2i i 0 12 24 S2i i 0-12 S2 is a downward step edge S3i i 0 12 24 S3=12 12 12 12 24 12 12 12 12 12 S3 M=0 0 0

15、12 0 -12 0 0 0 0 S3 is a bright impulse or line 12 S3i i 0-12 16 S4=12 12 12 12 15 18 21 24 24 24 S4 M=0 0 0 3 6 6 6 3 0 0 S4 is an upward ramp S4i i 0 12 0-1+1 M=S4i i 0 12 24 15 18 21 24 17 Use of second derivative mask,signal contrast is detected by a zero-crossing,which localizes and amplifies t

16、he change between two successive signal values.Second Derivative Mask M”=-1,2,-1 2-1-1 M”=S1i i 0 12 24 S1=12 12 12 12 12 24 24 24 24 24 S1 M”=0 0 0 0 -12 12 0 0 0 0 12 S”1i i 0-12 Example:S1 is a upward step edge zero-crossing 18 S2=24 24 24 24 24 12 12 12 12 12 S2 M”=0 0 0 0 12-12 0 0 0 0 S2i i 0

17、12 24 S2 is a downward step edge 12 S”2i i 0-12 S3i i 0 12 24 S3=12 12 12 12 24 12 12 12 12 12 S3 M”=0 0 0-12 24-12 0 0 0 0 S3 is a bright impulse or line 12 S”3i i 0-12 24 zero-crossing zero-crossing 19 S4=12 12 12 12 15 18 21 24 24 24 S4 M”=0 0 0 -3 0 0 0 3 0 0 S4i i 0 12 24 S4 is an upward ramp 2

18、1-1 M”=3 S”4i i 0-3 15 18 21 24 20 Some properties of derivative masks -1+1 M=2-1-1 M”=0-1+1 M=Coordinates of derivative masks have opposite signs in order to obtain a high response in signal regions of high contrast.The sum of coordinates of derivative masks is zero so that a zero response is obta

19、ined on constant regions.Second derivative masks produce zero-crossings at points of high contrast.First derivative masks produce high absolute values at points of high contrast.S1i i 0 12 24 21-1+1 M=0-1+1 M=2-1-1 M”=Input Images 22 Differencing 2D Images(Detecting Edges Detecting Edges of 2D Image

20、s)of 2D Images)The maximum change of the contrast in the 2D picture function f(x,y)occurs along the direction of the gradientgradient 梯度梯度 of the function.(Edge)High contrast The direction of the gradient 梯度梯度 fGxxFfGyy=23 Mathematic formula Mathematic formula of the gradient:of the gradient:Gradien

21、t magnitude or 22()()fffxy+Gradient direction xfyf/tan1fx fy f Lower/Higher intensities Higher/Lower intensities fx fy f fffxy+24 25 26 Using masks to estimate the gradient Three masks:Sobel masks 2 1 0-1-2-1 1 0 0 G x=0-1 2-1 0 1 1 0-2 G y=1 1 0-1-1-1 1 0 0 0-1 1-1 0 1 1 0-1 G x=G y=Prewitt masks G

22、 x=G y=Robert masks 1 0-1-1 1 0 0 0 27 a)Original Image-Lena b)Enhanced Lena by Histogram Equalization c)Edge map by Roberts operator e)Edge map by Sobel operator d)Edge map by Prewitt operator 28 Step-1.Compute:(),618yxNMxfxMask Mx is overlaid on image neighborhood N8x,y so that each intensity Nij

23、can be multiplied by weight Mij;Finally all these products are summed.Prewitt masks 64 42 15 35 66 12 14 38 65 fx fy f N8x,y 1 1 0-1-1-1 1 0 0 M x=()1830502761 )1242()1464()3865(61 ,618=+=+=yxNMxfx29 Step-2.Compute:(),618yxNMyfyMask My is overlaid on image neighborhood N8x,y so that each intensity N

24、ij can be multiplied by weight Mij;Finally all these products are summed.64 42 15 35 66 12 14 38 65 fx fy f N8x,y 0-1 1-1 0 1 1 0-1 M y=()1623512661 )4265()1566()1238(61 ,618+=+=yxNMyfy30 Step-3.Compute:Gradient magnitude xfyf/tan1 Gradient direction 2222()()181624fffxy+=+=421816tan/tan11=xfyf22()()

25、fffxy+31 1 1 0-1-1-1 1 0 0 M x=0-1 1-1 0 1 1 0-1 M y=Lower intensities Higher intensities 64 42 15 35 66 12 14 38 65 fx fy f N8x,y()1830502761 )1242()1464()3865(61 ,618=+=+=yxNMxfx()16,618=yxNMyfy2222()()181624fffxy+=+=421816tan/tan11=xfyf32 Example (a)Image of Judith Prewitt (b)Gradient image showi

26、ng result using the Prewitt 33 operator (a)(b)33 Sobel masks:the Sobel operator represents many,but not all,of the image edges.2 1 0-1-2-1 1 0 0 M x=0-1 2-1 0 1 1 0-2 M y=(a)Image of noisy squared and rings,(b)Coding of gradient direction computed by 33 Sobel operator.(a)(b)34 22222fffxy=+22(1,)(1,)

27、2(,)ff xyf xyf x yx=+22(,1)(,1)2(,)ff x yf x yf x yy=+Laplacian masks 2(1)(1,)(,1)(,1)4(,)ff xf xyf x yf x yf x y=+010141010Mask:35 Laplacian masks 2-1-1 Mx”=2-1-1 My”=0101141010H=Mask:36 Laplacian masks The other mask:1112181,1111213242,121121142122,161211015040101HHHH=37 Supplement:Sharpening filt

28、ers Objective:1.Highlight fine detail in and image 2.Enhance detail that has been blurred 3.Edge detection before image segmentation 4.Object location and recognition 5.Image art 38 Supplement:Sharpening filters High pass filters High-boost filters Differencing filters High pass filters Principle of

29、 mask design Advantage:enhance edges Shortcoming:enhance other discontinuities and discard low frequency information 40 High-boost filters For Laplacian masks 22(,)(,)(,)(,)(,)f x yf x yg x yf x yf x y=+If the center coefficient of the Laplacian mask is negative If the center coefficient of the Lapl

30、acian mask is positive (a)Origin image (b)Laplacian filtered image(3*3)(c)Enhanced image 42 2(,)(,)(,)(,)(,)*1(,)4(,)(1,)(1,)(,1)(,1)5(,)(1,)(1,)(,1)(,1)g x yf x yf x yf x yf x yHf x yf x yf xyf xyf x yf x yf x yf xyf xyf x yf x y=+=+(1,1)(1,)(1,1)(,1)(,)(,1)*(1,1)(1,)(1,1)(,)*f ijf ijf ijf i jf i j

31、f i jf ijf ijf ijf x y+=+=0101510100101141010H=010151010 43 01015101044 0106141010HA=+The other mask:1117181111HA=+High-boost Laplacian masks Differencing filters Gradient filter Robert filter Prewitt filter Sobel filter Laplacian filter 46 Conclusion Smoothing filter:系数都为正,一般系数之和等于1。Sharpening filt

32、er:系数有正有负,若没有提升,系数之和等 于0;否则,系数之和大于零。Spatial filter Smoothing filterSmoothing filter Sharpening filter Average filter Median filter The first Derivative The sencond Derivative Mini Project1:Enhance image a)Origin image b)Laplacian of a)c)Sharpened image by adding a)and b)d)Edge image by sobel operato

33、r and smoothing image using 5*5 mask e)b)*d)f)Sharpened image by adding a)and e)49 Mini Project2:Enhance image Image characteristic:A narrow range of low gray-level values High noise content(a)Origin image 50 Mini Project2:Enhance image Origin image Laplacian enhanced Roberts gradient Box filter smo

34、othed Sharpened+Sharpen enhaced Power-law strech Output 51 Laplacian+(a)111181111(a)Origin image(b)52 Robert(a)Origin image(c)53 5*5 box smooth(c)(d)+(a)(d)(b)(e)C=1=0.5(e)(f)56 Enhanced Image Origin image 57 2.Gaussian Filtering&Log Edge Detection The Gaussian function has important applications in

35、 many areas of mathematics,including image filtering.It can be used for smoothing images or detecting edges.Definition:A Gaussian function of one variable with spread is of the following form,where c is some scale factor.A Gaussian function of two variables is 222)(xcexg=1-D 2222)(),(yxceyxg+=2-D 58

36、 The Gaussian with its first and second derivatives are important in filtering operations.22221)(xexg=222321)(xxexg=222352212)(xexxg=59 Two masks for Gaussian smoothing 2 1 2 1 2 1 1 4 2 G3 3=A 33 mask approximating a Gaussian obtained by matrix multiplication 1,2,1T 1,2,1;2D Gaussian function 3D Re

37、presentation 2D Representation 60 G77=55 55 70 70 70 90 55 55 70 26 26 33 26 12 33 26 26 12 33 26 12 26 26 12 33 7 7 3 3 9 9 3 1 7 7 1 3 9 3 1 7 7 1 3 7 7 3 3 9 A 77 mask approximating a Gaussian with =2 obtained by using to generate function values for integers x and y and then setting c=90 so that

38、 the smallest mask element is 1.2222)(),(yxceyxg+=2D Representation 3D Representation 852585212521012521258525861 Detecting Edges with the LOG Filter LOG filter(Laplacian of Gaussian)-1D 222352212)(xexxg=62 Detecting Edges with the LOG Filter LOG filter(Laplacian of Gaussian)-2D 63(2)An 1111 mask ap

39、proximating the Laplacian of a Gaussian with=2.Guassian smoothing+Laplancian b)Edge map by LOG 0.005 a)Original image b)Edge map by LOG 0.008 65 66 3.The Canny Edge Detector The Canny edge detector is a very popular and effective operator(Gaussian smoothing+Sobel).The Canny operator first smoothes t

40、he intensity image,then produces extended contour segments by following high gradient magnitudes from one neighborhood to another.L.G.Shapiro,G.C.Stockman,L.G.Shapiro,G.C.Stockman,Computer Computer VisionVision,Prentice Hill,2001,Prentice Hill,2001 67 Example An input image(a)is smoothed using Gauss

41、ian filters of size(b)=4,and(c)=1 before performing edge detection.More detail and more noise is shown for the smaller filter.(b)(c)(a)=4 =1 68 Example:(a)Image of the great arch in St.Louis;(b)results of Canny operator with =1;(c)results of Canny operator with =4;(a)(b)(c)69 Examples(a)Image of Mao

42、s Memorial.(b)Result of applying Canny operator with =1.(c)Result of =2.Some objects are detected very well,so are some shadows.(a)(b)(c)Roberts Prewitt Sobel Laplacian LOG Canny BW=edge(I,type)first order differential second order differential 71 Thresholding Used in image segmentation(classify pix

43、els based on their gray levels)Fixed thresholding is to distinguish object(s)from background.Threshold fixed manually.Adaptive threshold calculates threshold level via histogram of the image.Ideally histogram should have two peaks.However single and multiple peak histograms are not uncommon.72 Diffe

44、rent Histograms Thresholding 73 74 75 Zm N-1 RHST z 76 77 78 Use of Boundary Characteristics for Use of Boundary Characteristics for Histogram Improvement Histogram Improvement From the privies discussion,an indication of whether a pixel is on an edge may be obtained by computing its gradient.In add

45、ition,use of the Laplacian can yield information regarding whether a given pixel lies on the dark or light side of an edge.The average value of the Laplacian is 0 at the transition of an edge,so in practice the valleys of histograms formed from the pixels selected by a gradient/Laplacian criterion c

46、an be expected to be sparsely populated.We can calculate gradient f and the Laplacian 2f at any point(x,y)in an image.These two quantities may be used to form a three-level image,as follows 000),(22 T(i,j)I(i,j)=uint8(255);else I(i,j)=uint8(0);end end end imshow(I);Sauvola Christian 97 where m is lo

47、cal mean,s is local standard deviation,R is the dynamic range of standard deviation fixed to 128 and k is a constant set to 0.20.5.The improved method performs better for well-scanned document images,but it faces difficulties in dealing with images that do no correspond with the hypothesis.where M i

48、s the minimum gray level of the whole image,R is set to the maximum of the standard deviations of the image and k is fixed at 0.5.Adaptive Thresholding the algorithm focuses only on the maximum standard deviation of the entire image,its performance degrades when the input image involves great change

49、s in background luminance.98 Meng-Ling Feng 99 Based on empirical study,setting the values of a1,k1,and k2 in the ranges of 0.1-0.2,0.01-0.05 and 0.15-0.25 and r to 2,respectively,can generally produce good binarization results.100 Segmentation Thresholding in RGB space For color or multi-spectral i

50、mages,it may be possible to set different thresholds for each color channel,and so select just those pixels within a specified cuboid in RGB space.Another common variant is to set to black all those pixels corresponding to background,but leave foreground pixels at their original color/intensity(as o

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2026 宁波自信网络信息技术有限公司  版权所有

客服电话:0574-28810668  投诉电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服