声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 2554|回复: 3

[图像处理] [求助]请帮忙看一下这个函数:bwmorph.m中的细化子函数thin(图像处理)

[复制链接]
发表于 2006-5-13 20:54 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
<P>% Function THIN<BR>%<BR>function [c,lut] = thin(a)<BR>  <BR>% Louisa Lam, Seong-Whan Lee, and Ching Y. Wuen, "Thinning Methodologies-A<BR>% Comprehensive Survey," IEEE TrPAMI, vol. 14, no. 9, pp. 869-885, 1992.  The<BR>% algorithm is described at the bottom of the first column and the top of the<BR>% second column on page 879.</P>
<P>lut = [];<BR>if (isempty(a))<BR>    c = zeros(size(a));<BR>    return;<BR>end</P>
<P>G1 = uint8(<FONT size=2><STRONG>lutthin1</STRONG></FONT>);<BR>G2 = uint8(<STRONG><FONT size=2>lutthin2</FONT></STRONG>);<BR>G3 = uint8(<STRONG>lutthin3</STRONG>);<BR>G4 = uint8(<STRONG>lutthin4</STRONG>);</P>
<P>% Make a lookup table that will produce<BR>% a lookup table indices.  This is avoid<BR>% doing more work in calling applylut<BR>% multiple times with the same input than<BR>% we really need to.</P>
<P>lutlut = 1:512;<BR>lookup = applylut(a, lutlut);<BR>% Preallocate a uint8 zeros matrix<BR>d = uint8(0);<BR>[m,n] = size(a);<BR>d(m,n) = 0;</P>
<P>% First subiteration<BR>d(:) = G1(lookup) &amp; G2(lookup) &amp; G3(lookup);<BR>c = a &amp; ~d;</P>
<P>% Second subiteration<BR>lookup = applylut(c, lutlut);<BR>d(:) = G1(lookup) &amp; G2(lookup) &amp; G4(lookup);<BR>c = c &amp; ~d;<BR><BR><BR><BR>这里面的粗体字<STRONG>lutthin1~lutthin4</STRONG>是什么意思啊?谢谢!</P>
回复
分享到:

使用道具 举报

 楼主| 发表于 2006-5-14 08:46 | 显示全部楼层

[求助]请帮忙看一下这个函数:bwmo...

这个东西就真的没有人知道么?
发表于 2006-6-8 19:57 | 显示全部楼层

回复:(xfzjxfzj)[求助]请帮忙看一下这个函数:bwmo...

那是在进行细化过程中,可以删除中心点必备的四个条件.
 楼主| 发表于 2006-6-10 19:09 | 显示全部楼层
本来做毕业设计想用的,但现在已经用别的方法完成了。<br><br>然则,还是要谢谢呀......<br><br><STRONG><FONT color=#ee6911>注册日期:2006-06-08</FONT> <br><br><FONT color=#f70938>回复日期:2006-06-08 19:57 <br></FONT></STRONG><br>嗯嗯...我以为我这个帖子应该埋的很深了呢
[此贴子已经被作者于2006-6-10 19:16:42编辑过]

您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-9-25 11:19 , Processed in 0.049786 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表