- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
image obtain(图像获取)
image obtain(图像获取)
明确;中图分类号
%图像显示
数据文件为文本细读(想:\ charact1 .txt”、“%s”);
数据字符(数据文件);
对于i = 1:大小(数据,1)
对于j = 1:大小(数据,2)
如果((数据(i,j)~ = 0))
数据(I,J)= 1”;
结束
结束
结束
数量=双(数据);
im_first = mat2gray(数量);
im_first = im2bw(im_first);
图,imshow(im_first);标题(图像1);
%图像分割
hist_col =总和(im_first);
hist_row =总和(im_first”);
【M1、N1 ] =尺寸(im_first);
从车辆的方向将图像。
我= 1:长度(hist_row),
如果hist_row(我) 0
im_top1 = I + 1;
结束
结束
我= 1:im_top1-1,
如果hist_row(我)= = 0
im_bot1 = i-1;
结束
结束
我= 1:im_bot1,
如果hist_row(我) 0
im_top2 = I + 1;
结束
结束
我= 1:im_top2-1,
如果hist_row(我)= = 0
im_bot2 = i-1;
结束
结束
im_above = im_first(im_bot1:im_top1,:);
im_below = im_first(im_bot2:im_top2,:);
人物、情节(1,2,1);imshow(im_above)、标题(im_above”);
subplot(1,2,2);imshow(im_below)、标题(im_below”);
%从水平方向分割上述图像
图形
hist_im_above =总和(im_above);
KK = 1;
save_l_r =零(3,3);
length_above =长度(hist_im_above);
信号=1;
im_left = 1;
im_right = 1;
第一= 1;
J = 1:length_above
如果第一个 3
J = length_above + 1;
打破;
结束
如果j = KK
K = KK:length_above
如果hist_im_above(k) 0,
im_left = K-1;
信号=2;
打破;
结束
结束
K2 = K:length_above
如果hist_im_above(K2)= = = = 0和信号2,
im_right = k2;
K2;
信号=1;
打破;
结束
结束
save_l_r(第一,1)=第一;
save_l_r(第一,2)= im_left;
save_l_r(第一,3)= im_right;
im_seg = im_above(:,im_left:im_right);
im_seg = imresize(im_seg,[ 20 ]);
fsave = strcat(会:\分配\”,im_below ,int2str(第一),“.bmp”);
imwrite(im_seg,fsave,bmp”);
名为strcat(im-below’,int2str(一));
subplot(2,1 + 3);imshow(im_seg);标题(名)
第一=第一+ 1;
结束
结束
%从水平方向分割下面的图像
hist_im_below =总和(im_below);
KK = 1;
save_l_r1 =零(3,3);
length_below =长度(hist_im_below);
信号=1;
im_left = 1;
im_right = 1;
第一= 1;
J = 1:length_below
如果第一个 3
J = length_below + 1;
打破;
结束
如果j = KK
K = KK:length_below
如果hist_im_below(k) 0,
im_left = K-1;
信号=2;
打破;
结束
结束
K2 = K:length_below
如果hist_im_below(K2)= = = = 0和信号2,
im_right = k2;
K2;
信号=1;
打破;
结束
结束
save_l_r1(第一,1)=第一;
save_l_r1(第一,2)= im_left;
save _ _ r1 (the first, 3) = im _ right;
im _ n = im _ below (,, im _ left: im _ right);
im _ n = imresize (im _ 40,20 n, []);
fsave = strcat (d: \ assignment \, im _ ab
您可能关注的文档
- 行为 影响价值(Behavior influence value).doc
- 行为治疗(Behavior therapy).doc
- 行为观察看人心(Conduct observation and see people's hearts).doc
- 行善积德(One good turn deserves another).doc
- 行政效能建设(Administrative efficiency construction).doc
- 蓝魔固件升级方法+砖机修复方法(Ramos firmware upgrade method + brick machine repair method).doc
- 蝴蝶效应( The Butterfly Effect)是指在一个动力系统中,初始条件下(The Butterfly (Effect) refers to a dynamic system, under the initial conditions).doc
- 行政法与行政诉讼法09第四章(Administrative law and administrative procedural law, the 09 and fourth chapters).doc
- 行政管理章节重点题(Key issues in administration).doc
- 行政职业能力倾向测试知识扩充之句子练习二(A sentence exercise to enlarge the knowledge of administrative aptitude test two).doc
- HTML格式代码(HTML format code).doc
- Image和Bitmap类概述(Image and Bitmap class overview).doc
- image转byte[](Turn the image byte []).doc
- imy格式的文件的制作流程(The process of making documents in imy format).doc
- INI文件读取模块(VB6源代码)(INI file read module (VB6 source code)).doc
- Inode学生区校园网使用指南(Guidelines for use of Inode student area campus network).doc
- In your eyes(在你的眼里).doc
- Inno Setup教程-常见问题解答(Inno Setup tutorial - FAQ).doc
- IGNITO物品代码大全(IGNITO article code complete).doc
- IBM安装驱动顺序(IBM installation drivers order).doc
文档评论(0)