版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Digitizing the coordinate values is called sampling.Image sampling and quantizationDigitizing the amplitude values is called quantization.Lecture 2: Chapter 2: Digital Image FundamentalsConcept of false contouring: ridge-like structures caused by the use of an insufficient number of gray levels in s
2、mooth areas of a digital image. Rule of thumb: images of size 256256 pixels and 64 gray levels are about the smallest images that can be expected to be reasonably free of objectionable sampling checker-boards and false contouring.Lecture 2: Chapter 2: Digital Image FundamentalsProblems associated wi
3、th resolution reductionIllustration of sampling frequency less than signal frequencyIf the function is undersampled, then a phenomenon called aliasing corrupts the sampled image.Lecture 3: Chapter 2: Digital Image FundamentalsA set of pixels all of which are 4-connected to each other is called a 4-c
4、omponent; if all the pixels are 8-connected the set is an 8-component.4-component4-componentOnly one 8-component but two 4-componentLecture 3: Chapter 2: Digital Image Fundamentals8-componentIllustration of different connected components0 0 0 0 0 00 1 1 0 0 00 1 1 0 0 00 0 0 1 1 00 0 0 1 1 0How many
5、 connected components for the following image?Two objects for 4-connected neighborhoodone object for 8-connected neighborhoodLecture 3: Chapter 2: Digital Image FundamentalsConnected components exercise1. The Euclidean distance between p and q is defined as:Different ways of measuring distanceUsing
6、this method, the pixels having a distance less than or equal to some value r from (x,y) are the points contained in a disk of radius r centered at (x,y).pqLecture 3: Chapter 2: Digital Image Fundamentals2. The D4 distance (also called city block distance) between p and q is defined as:Using this met
7、hod, the pixels having a D4 distance from (x,y) less than or equal to some value r form a diamond centered at (x,y). For example, the pixels with D4 distance 2 from (x,y) form the following contours of constant distance:The pixels with D4 = 1 are the 4-neighbors of (x,y).2211221022212D4 distanceDiff
8、erent ways of measuring distance contLecture 3: Chapter 2: Digital Image Fundamentals3. The D8 distance (also called chessboard distance) between p and q is defined as:D8(p,q) = max( x-s , y-t )2222221112210122111222222D8 distanceDifferent ways of measuring distance contThe pixels with D8 = 1 are th
9、e 8-neighbors of (x,y).Lecture 3: Chapter 2: Digital Image Fundamentalsp2pp1p4p3Assume that p, p2, and p4 have value 1 and that p1 and p3 can have a value 0 or 1.For V = 1, solve for Dm distance between p and p4.Solution: If p1 and p3 are 0, then Dm is 2. If p1 is 1, p3 are 0, then Dm becomes 3. Sim
10、ilarly, if p3 is 1 and p1 is 0, Dm also is 3. Finally, if both p1 and p3 are 1, Dm is 4.Example to illustrate finding Dm distanceLecture 3: Chapter 2: Digital Image FundamentalsCommon functions for enhancementLecture 4: Chapter 3 Spatial Domain Enhancements = cr Where c and are positive constants.Po
11、wer-law transformationLecture 4: Chapter 3 Spatial Domain EnhancementUse of values greater than 1 to reduce the light gray level.Lecture 4: Chapter 3 Spatial Domain EnhancementEnhancement of washed-out imagesIllustration of histogram equalization4x4 image Gray scale = 0,9histogram0112233445566789No.
12、 of pixelsGray level2332424332352424Lecture 5: Chapter 3 Spatial Domain Enhancement91609s x 9No. of pixelsGray Level(j)99998.486.163.330000161616161511600000145600876543210Perform histogram equalizationLecture 5: Chapter 3 Spatial Domain EnhancementOutput image Gray scale = 0,9Equalized histogram011
13、2233445566789No. of pixels3663838663693838Results after histogram equalizationLecture 5: Chapter 3 Spatial Domain Enhancement 255 194 157 103 15 59 116 202 239 90 155 5 235 234 207 124 209 188 105 3 227 113 45 228 35255=11111111235=11101011188=10111100155=10011011124=0111110090 =01011010Bit-plane 7
14、imageBit-plane 2 image111100111000Lecture 4: Chapter 3 Spatial Domain EnhancementA simple bit-plane example17241815235714164613202210121921311182529111121111910677101111131161113202210121921311182529Original imagemaskFiltered image10Lecture 7: Chapter 3 Spatial Domain EnhancementIllustration of a we
15、ighted average filterTechnique: Excessive blurring is generally used to eliminate small objects in the image. They will be blended into the background of the image.The pronounced black border is the result of padding the border of the original image with 0s (black) and then trimming off the padded a
16、rea.Example to show the effects of different mask size on image appearance Mask size=3, 5, 9, 15, 35Lecture 7: Chapter 3 Spatial Domain EnhancementThe best-known example in this category is the median filter (中值滤波器), which replaces the value of the center pixel by the median of the gray levels in th
17、e neighborhood of that pixel.Median filters are particularly effective in the presence of impulse noise, also called salt-and-pepper noise (椒盐噪声).Definition of median filterLecture 7: Chapter 3 Spatial Domain EnhancementIllustration of Median filterLecture 7: Chapter 3 Spatial Domain EnhancementDefi
18、nition of isotropic filters: The response is independent of the direction of the discontinuities in the image to which the filter is applied. Isotropic filters are rotation invariant, in the sense that rotating the image and then applying the filter gives the same result as applying the filter to th
19、e image first and then rotating the result. Concept of Rotation InvariabilityLecture 7: Chapter 3 Spatial Domain EnhancementDefinition: highlight fine detail in an image or to enhance detail that has been blurred. It is the opposite of averaging.Basic thinking: since averaging is analogous to integr
20、ation, it is logic to conclude that sharpening could be accomplished by spatial differentiation.Image differentiation enhances edges and other discontinuities (such as noise) and deemphasizes areas with slowly varying gray-level values.Sharpening spatial filters (锐化滤波器)Lecture 7: Chapter 3 Spatial D
21、omain EnhancementIt is common practice to multiply the input image function by (-1)x+y prior to computing the Fourier transform.The operation means to shift the origin of F(u,v) from (0,0) to coordinates (M/2,N/2).Shift factor (-1)x+yLecture 8: Chapter 4 Frequency Domain EnhancementThe illumination
22、component of an image generally is characterized by slow special variations, while the reflectance component tends to vary abruptly, particularly at the junctions of dissimilar objects.The above characteristics lead to associating the low frequencies of the Fourier transform of the logarithm of an i
23、mage with illumination and the high frequencies with reflectance.Lecture 10: Chapter 4 Frequency Domain EnhancementComponents characteristicsMost of the sharp detail information in the picture is contained in the 8% power removed by the filter.Images c) through e) are characterized by “ringing”, whi
24、ch becomes finer in texture as the amount of high-frequency content removed decreases. This ringing behavior is a characteristic of ideal filters.The last image is quite close to the original, this indicates that little edge information is contained in the upper 0.5% of the spectrum power in this pa
25、rticular case.Summarizing characteristicsLecture 9: Chapter 4 Frequency Domain Enhancementfig4_12_demo.mCharacteristics of spatial filter h(x,y):A dominant component at the origin which is primarily responsible for blurring.Concentric, circular components about the center components which are respon
26、sible primarily for the ringing characteristic of ideal filters.Convolution process copies h(x,y) at the location of each impulse. Note how the original points are blurred , note also that ringing was introduced during the same process.Pictorial illustration to show filtering in frequency domain as
27、a convolution in the spatial domainLecture 9: Chapter 4 Frequency Domain Enhancementfig4_13_demo.mWith n = 2 and D0 equal to 5, 15, 30, 80, and 230, we noticed a different results as compared to applying the ideal filter.1. A smooth transition in blurring as a function of increasing cutoff frequency
28、.2. No ringing is visible in any of the images.A Butterworth filter of order 1 has no ringing. Ringing generally is imperceptible in filters of order 2, but can become a significant factor in filters of higher order.Results of applying the BLPFLecture 9: Chapter 4 Frequency Domain Enhancementfig4_15
29、_demo.mResults of applying the GLPF Compare with BLPF of order 2, the results are quite comparable in general, and we are assured of no ringing in the case of GLPF. This characteristics is especially important in medical imaging, where any type of artifact is not acceptable.Lecture 9: Chapter 4 Freq
30、uency Domain Enhancementfig4_18_demo.mImplementing the Fourier transformProperties of Fourier transform (review)1. Translation (位移性质)Lecture 10: Chapter 4 Frequency Domain EnhancementApplication of translation propertyWhen u0 = M/2 and v0 = N/2, it follows thatIn this casesimilarlyLecture 10: Chapte
31、r 4 Frequency Domain EnhancementThe discrete Fourier transformcan be expressed in the separable formLecture 10: Chapter 4 Frequency Domain EnhancementSeparabilityPeriodicity and conjugate symmetryThe discrete Fourier transform has the following periodicity properties: F(u, v) = F(u+M, v) = F(u, v+N)
32、 = F(u+M, v+N)The inverse transform also is periodic: f(x, y) = f(x+M, y) = f(x, y+N) = f(x+M, y+N)Lecture 10: Chapter 4 Frequency Domain EnhancementThe idea of conjugate symmetry was introduced in previous section, and is repeated here for convenience:F(u, v) = F*(-u, -v)The spectrum also is symmet
33、ric about the origin:Conjugate symmetryLecture 10: Chapter 4 Frequency Domain EnhancementThe need for padding (补零)Some important facts that need special attention:1. For DFT, the periodicity is a mathematical by-product of the way in which the discrete Fourier transform pair is defined. Periodicity
34、is part of the process, and it cannot be ignored.2. If periodicity issue is not handled properly, it will give incorrect results of some missing data.3. The following example shows details of need for padding.Lecture 10: Chapter 4 Frequency Domain EnhancementSolution to the periodicity problemAssume
35、 that f and h consist of A and B points, respectively. We append zeros to both functions so that they have identical periods, denoted by P.The above procedure yields extended, or padded, functions given by:fe(x) = f(x)0 x A10A x Phe(x) = h(x)0 x B10B x PIt can be shown that if P |Rj|,for all ji, tha
36、t point is said to be more likely associated with a line in the direction of mask i. Lecture 19: Chapter 10 Image Segmentation-planeproblem of using equation y = ax + b is that value of a is infinite for a vertical line.To avoid the problem, use normal line equation x cos + y sin = to represent a li
37、ne instead.vertical line has = 90 with equals to the positive y-intercept or = -90 with equals to the negative y-intercept.x cos + y sin = -plane = 90 measured with respect to x-axisLecture 20: Chapter 10 Image SegmentationRegion-Based SegmentationBasic FormulationP(Ri) is a logical predicate proper
38、ty defined over the points in set Riex. P(Ri) = TRUE if all pixel in Ri have the same gray levelLecture 20: Chapter 10 Image SegmentationRegion Growingstart with a set of “seed” pointsgrowing by appending to each seed those neighbors that have similar properties such as specific ranges of gray level
39、Lecture 20: Chapter 10 Image SegmentationRegion Growingselect all seed points with gray level 255criteria:the absolute gray-level difference between any pixel and the seed has to be less than 65the pixel has to be 8-connected to at least one pixel in that region (if more, the regions are merged)Lect
40、ure 20: Chapter 10 Image SegmentationRegion splitting and mergingQuadtreeSplit into 4 disjoint quadrants any region Ri for whichP(Ri) = FALSEMerge any adjacent region Rj and Rk for which P(Ri Rk ) = TRUEStop when no further merging or splitting is possible.Lecture 20: Chapter 10 Image SegmentationCh
41、ain codesChain codes are sequence of direction codes when we walk around the boundary of an object. based on 4 or 8 connectivity, the direction code is shown below:Lecture 21: Chapter 11 Representation & DescriptionChain codesLecture 21: Chapter 11 Representation & DescriptionNormalized chain codestreat the chain code as a circu
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 健身广场绿化施工方案
- 2024年炎陵县招教考试备考题库及答案解析(必刷)
- 2025年新兴县幼儿园教师招教考试备考题库带答案解析
- 某家具公司酒店家具定制方案(规则)
- 2025年和林格尔县招教考试备考题库及答案解析(夺冠)
- 2025年揭东县幼儿园教师招教考试备考题库及答案解析(夺冠)
- 2025年和政县招教考试备考题库带答案解析(夺冠)
- 2025年翁源县幼儿园教师招教考试备考题库带答案解析(必刷)
- 2024年镇宁布依族苗族自治县招教考试备考题库带答案解析(夺冠)
- 2025年邯郸县招教考试备考题库附答案解析(必刷)
- 2025年考研英语真题试卷及答案
- 酒店治安安全管理制度范本
- 专家咨询委员会建立方案
- 兼职剪辑外包合同范本
- 物业入户维修标准及流程
- 生物滤池除臭装置设计计算实例
- 选煤厂安全规程培训考核试题带答案
- 八年级上册道德与法治全册知识点(2025年秋新版)
- 消防设备故障和维修的应急响应预案
- 护理安全隐患与防范措施课件
- 泸州市龙马潭区三叉河山洪沟治理项目环评报告
评论
0/150
提交评论