《调色盘操作实例》PPT课件.ppt
《《调色盘操作实例》PPT课件.ppt》由会员分享,可在线阅读,更多相关《《调色盘操作实例》PPT课件.ppt(36页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、Digital Image Processing,2nd ed.Digital Image Processing,2nd ed.2002 R.C.Gonzalez&R.E.Woods Chapter 3Image Enhancementin the Spatial Domain(Part C)Image Processing,Department of Information Management,Leader University139下书网提供大量行业资料,电子书,电脑教程下载下书网提供大量行业资料,电子书,电脑教程下载Digital Image Processing,2nd ed.Dig
2、ital Image Processing,2nd ed.2002 R.C.Gonzalez&R.E.Woods 調色盤操作實例假設有一3x3的圖形,使用的是8階的RGB色彩機制,且該圖形內容及調色盤如下:NoRGB00001234254236504711512262337247Gray03453234Digital Image Processing,2nd ed.Digital Image Processing,2nd ed.2002 R.C.Gonzalez&R.E.Woods 修正後的結果NoRGB00001111222233334444555566667777Digital Image
3、 Processing,2nd ed.Digital Image Processing,2nd ed.2002 R.C.Gonzalez&R.E.Woods Histogram EqualizationAutomatically determines a transformation function that seeks to produce an output image that has a uniform histogram.When the uniform histogram is not the best approach,we may try the Histogram Matc
4、hing or Histogram Specification.Histogram Matching allows us to specify the shape of the histogram.Digital Image Processing,2nd ed.Digital Image Processing,2nd ed.2002 R.C.Gonzalez&R.E.Woods Histogram Matching(Specification)The histogram equalization automatically determines a transformation functio
5、n that seeks to produce an output image that has a uniform histogram.The method used to generate a processed image that has a specified histogram is called histogram matching or histogram specification.Digital Image Processing,2nd ed.Digital Image Processing,2nd ed.2002 R.C.Gonzalez&R.E.Woods Histog
6、ram MatchingDigital Image Processing,2nd ed.Digital Image Processing,2nd ed.2002 R.C.Gonzalez&R.E.Woods Some Useful PDFs of pz(z)Digital Image Processing,2nd ed.Digital Image Processing,2nd ed.2002 R.C.Gonzalez&R.E.Woods Specified PDF Obtaining Procedures1)Obtain the transformation function T(r)usin
7、g Eq.(3.3-10).2)Use Eq.(3.3.11)to obtain the transformation function G(z).3)Obtain the inverse transformation function G-1.4)Obtain the output image by applying Eq.(3.3-12)to all the pixels in the input image.uThe result of this procedure will be an image whose gray levels,z,have the specified proba
8、bility density function pz(z)Digital Image Processing,2nd ed.Digital Image Processing,2nd ed.2002 R.C.Gonzalez&R.E.Woods Discrete VersionDigital Image Processing,2nd ed.Digital Image Processing,2nd ed.2002 R.C.Gonzalez&R.E.Woods Implementation Details1)Each set of gray levels rj,sj,and zj,j=0,1,2,L-
9、1,is one-dimensional array of dimension Lx1.2)All mappings from r to s and from s to z are simple table lookups between a given pixel value and these arrays.3)Each of the elements of these arrays,for example,sk,contains two important pieces of information:The subscript k denotes the location of the
10、element in the array,and s denotes the value at that location.4)We need to be concerned only with integer pixel values.Digital Image Processing,2nd ed.Digital Image Processing,2nd ed.2002 R.C.Gonzalez&R.E.Woods Histogram MatchingDigital Image Processing,2nd ed.Digital Image Processing,2nd ed.2002 R.
11、C.Gonzalez&R.E.Woods Procedures for Histogram Matching1)Obtain the histogram of the given image.2)Use Eq.(3.3-13)to precompute a mapped level sk fro each level rk.3)Obtain the transformation function G from the given pz(z)using Eq.(3.3-14).4)Precompute zk for each value of sk using the iterative sch
12、eme defined in connection with Eq.(3.3-17).5)For each pixel in the original image,if the value of that pixel is rk,map this value to its corresponding level sk;then map level sk into the final level zk.Use the precomputed values from Steps(2)and(4)for these mappings.uStep(5)implements two mappings.T
13、he first mapping is nothing more than histogram equalization.Digital Image Processing,2nd ed.Digital Image Processing,2nd ed.2002 R.C.Gonzalez&R.E.Woods Original ImageDigital Image Processing,2nd ed.Digital Image Processing,2nd ed.2002 R.C.Gonzalez&R.E.Woods Fail to Histogram EqualizationSince the p
14、roblem with the transformationfunction in Fig.3.21(a)was caused by a large concentration of pixels in the originalimage with levels near 0.Digital Image Processing,2nd ed.Digital Image Processing,2nd ed.2002 R.C.Gonzalez&R.E.Woods Good Result by Histogram Matching MethodManuallyspecifiedfunctionG(z)
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 调色盘操作实例 调色盘 操作 实例 PPT 课件
限制150内