- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
* * Ex: an image [3 5 8;2 8 4;1 9 3] is given Output image is [T(3), T(5), T(8); T(2), T(8), T(4); …] Ex: T(f(x,y))=f(x,y)-f(x,y-1) ? neighborhood of (x,y) is {(x,y-1)} Filter h=[1, -1] * Ex: an image [3 5 8;2 8 4;1 9 3] is given Output image is [T(3), T(5), T(8); T(2), T(8), T(4); …] Ex: T(f(x,y))=f(x,y)-f(x,y-1) ? neighborhood of (x,y) is {(x,y-1)} Filter h=[1, -1] * * A curve with slope 1 has the effect of spreading gray levels … compressing Use histogram to explain Figure 3.5 (0~1.5*10^6)?0~6.2 * A curve with slope 1 has the effect of spreading gray levels … compressing Use histogram to explain Figure 3.5 (0~1.5*10^6)?0~6.2 Convolution vs Correlation Implementation Using IPT in MATLAB Imfilter (Try it!) Linear Smoothing Spatial Filters It has the effect of blurring image Noise can be reduced Examples Mean filter/box filter/averaging filter Gaussian filter/weighted filter Filter size 3×3 Filter size 9×9 Filter size 5×5 Filter size 15×15 Filter size 35×35 Original 15×15 Mean Filtering 函数imfilter 函数imfilter用来实现线性空间滤波。 例3.7 使用函数imfilter 3.4.2 非线性滤波器 非线性滤波器的定义 使用模板进行结果像素值的计算,结果值直接取决于像素邻域的值,而不使用乘积和的计算 R = w1z1 + w2z2 + … + wnzn 主要非线性滤波器 主要非线性滤波器 中值滤波 主要用途:钝化图像、去除噪音 计算公式:R = mid {zk | k = 1,2,…,9} 最大值滤波 主要用途:寻找最亮点 计算公式:R = max {zk | k = 1,2,…,9} 最小值滤波 主要用途:寻找最暗点 计算公式:R = min {zk | k = 1,2,…,9} 最大值滤波 最小值滤波 函数colfilt 函数colfilt Non-linear Smoothing Spatial Filters Median filter The best known example Special order-statistics filter Replacing the value of a pixel by the median of the gray levels in the predefined neighborhood (including the pixel being processed) of that pixel Median Median of a set of odd number values (assume the number is 2n+1) is the value such that n of them are greater or equal to it and n of them are less or equal to it Examples For a 3×3 neighborhood, the medi
文档评论(0)