7-2纹理特征提取.ppt

  1. 1、本文档共66页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
* 开启:含义:先用B对X腐蚀,然后用B对结果膨胀 * 闭和:含义:先用B对A膨胀,然后用B对结果腐蚀 * 使图像的轮廓变得光滑,断开狭窄的间断和消除细的突出物。 * Strel: structuring element * I=imread('1.jpg'); imshow(I); I=rgb2gray(I); I=im2double(I); figure Se=strel('square',3); I2=imerode(I,Se); BW=I-I2; imshow(BW); * 先开启再闭合 * Assignments The texture of an image as following , trying to compute the gray-tone co-occurrence matrices in three directions of the texture. Designing a program to judge the convexity-concavity of an object. * 白信封和红信封的处理方法不同,白的以V分量设域值0.7分割,而红的以H分量设域值0.55分割,见程序segment.m, 所以首先要判断是红还是白信封(用程序color1.m统计信封的色度) zip=imread('zip5.tif'); hue = color1(zip); hsv = rgb2hsv(zip); subplot(121),imshow(hsv(:,:,1)) subplot(122),imhist(hsv(:,:,1)) figure subplot(121),imshow(hsv(:,:,2)) subplot(122),imhist(hsv(:,:,2)) figure subplot(121),imshow(hsv(:,:,1)) subplot(122),imhist(hsv(:,:,1)) if hue > 0.1 blk = hsv(:,:,3)<0.7; else blk = hsv(:,:,1)> 0.55;% special for zip1.tif,zip3.tif,zip4.tif, end figure imshow(blk) * Spur:Remove end points of lines without removing small objects completely.只去除端点处外侧的一个像素 Thin与skel比对:With N = Inf, remove pixels so that an object without holes shrinks to a minimally connected stroke。 * n can have a value of either 4 or 8, where 4 specifies 4-connected objects and 8 specifies 8-connected objects; if the argument is omitted, it defaults to 8. 2.找端点: function g=endpoints(f) (自编) g返回的是端点图: (数字4) 如:euler=0时, 可能的数有0,4,6,9 Endpoint数=1:  6 9;     Endpoint数=0:  0;     Endpoint数≥2: 4,8*; 再根据端点的位置区分: 6和9 区分:  1 2 3 5 7 (Euler=1) Endpoint=2: 1 2 5 7 Endpoint=3: 3 3.根据端点方向数来区分: 1 2 5 7 orient=1: 1 2 orient=4: 5 orient=0: 7 0 1 4 6 7 2 3 5 function[orient,n]= connex (bw,r,c) (自编) * 虽然图像的纹理特征在局部区域内可能没有规则 ,但在整体上却往往呈现出一定的规律性 。 Texture Characteristic Abstracting Texture is the description of the image pixels gray-scale distribution m

文档评论(0)

flyben + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档