找回密码
 注册
Simdroid-非首页
查看: 562|回复: 9

【求助】用matlab怎么处理超声图象来获得图象分形维数,谢谢!

[复制链接]
xiaowulxh 该用户已被删除
发表于 2002-6-5 14:03:14 | 显示全部楼层 |阅读模式 来自 LAN
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2002-6-9 23:07:11 | 显示全部楼层 来自 陕西西安

回复: 【求助】用matlab怎么处理超声图象来获得图象分形维数,谢谢!

Simdroid开发平台
"图象的分形维数"是什么概念?
回个帖子,如果我能理解,看能不能帮你编一个.

评分

1

查看全部评分

xiaowulxh 该用户已被删除
 楼主| 发表于 2002-6-11 21:07:01 | 显示全部楼层 来自 LAN
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2002-6-12 22:17:51 | 显示全部楼层 来自 陕西西安

回复: 【求助】用matlab怎么处理超声图象来获得图象分形维数,谢谢!

看了一些资料,远不是你给出的公式那么简单。
  
http://www.cindeca.org.ar/programa.htm
  
有工具包,我看可以解决你的问题。你仔细研究研究吧。

评分

1

查看全部评分

发表于 2002-6-12 22:26:37 | 显示全部楼层 来自 陕西西安

回复: 【求助】用matlab怎么处理超声图象来获得图象分形维数,谢谢!

另一个参考站点(比较简单)
  
http://www.physics.reading.ac.uk/units/2/2phah/2phah.htm

评分

1

查看全部评分

xiaowulxh 该用户已被删除
 楼主| 发表于 2002-6-13 08:42:45 | 显示全部楼层 来自 LAN
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2002-6-13 22:51:03 | 显示全部楼层 来自 陕西西安

回复: 【求助】用matlab怎么处理超声图象来获得图象分形维数,谢谢!

上面两个地方的程序都可以解决你的问题,
为什么自己不稍稍看一下呢???!
发表于 2002-6-14 12:52:30 | 显示全部楼层 来自 北京

回复: 【求助】用matlab怎么处理超声图象来获得图象分形维数,谢谢!

try this program:
function [H, r, x, y] = hurstVTP (A)
  
   ## usage: [H, r] = hurstVTP (A)
   ##
   ## Computes the Hurst parameter H of the vector A using the variance-time
   ## plot method.
   ##  
   ## Use the variance computed over intervals of different lenghts.  Plotted on
   ## a log-log diagram, var (x) versus the interval length (y) should be
   ## least-squares interpolated by a line of slope beta=2H.  r is the
   ## correlation coefficient and gives a "reliability factor" of the H
   ## estimate: values higher than 0.9 should be expected.
  
   ## I don't know about any data on the precision of this method.  All I know
   ## is that it cannot provide a confidence interval measure.
   ##  
   ## Leland, Taqqu, Willinger, Wilson, "On the Self-Similar Nature of Ethernet
   ## Traffic (Extended Version)", IEEE/ACM Trans. on Networking Vol.2, Num.1,
   ## 1994.
   ##
   ## Put in the public domain by Francesco Potorti` <F.Potorti@cnuce.cnr.it>
   ## Mon Aug 28 17:07:26 MET 1995
  
   if (!is_vector(A))
     error ("A should be a vector");
   endif
  
   # m is the minimum interval length over which the var is computed.  M is
   # the minimum number of intervals over which that same quantity is
   # computed.  k is the number of interval lengths per decade used for the
   # computation.  minp is the minimum number of points that must be used.
   # maxp is the maximum number of points that must be used.
   m = 10;
   M = 10;
   k = 5;
   minp = 5;
   maxp = 20;
  
   r = length (A);
   minr = ceil (m*M*10^((minp-1)/k));
   if (r < minr)
     error (sprintf ("A should have at least %d elements\n", minr));
   endif
  
   # n is the number of points we use to interpolate the line on a log-log
   # plot whose slope is 2H.  x is a vector containing their abscissae, y
   # contains their ordinates, that is, the variance of the increments of the
   # vector A at distances x.
   
   n = min (maxp, floor (k * log10(r/m/M)));
   x = floor (logspace (log10(m), log10(r/M), n))';
   y = zeros (n, 1);
   cumA = cumsum (A);
   for i = 1:n
     xi = x(i);
     Y = cumA (xi:xi:r);
     sets = length (Y);
     Y = Y - prepad (Y(1:sets-1), sets);
     y(i) = (sumsq(Y) - cumA(sets*xi)^2/sets) / (sets-1);
   endfor
   x = log (x);
   y = log (y);
   alfabeta = [ones (size (x)), x] \ y;
   H = alfabeta(2) / 2;
   if (nargout > 1) r = corrcoef (x, y); endif
endfunction
  
--------------------------------------------------------------------------------
有问题请告诉我!

评分

1

查看全部评分

luntanlsl 该用户已被删除
发表于 2002-9-16 21:53:34 | 显示全部楼层 来自 河北保定
提示: 作者被禁止或删除 内容自动屏蔽
qsw2000 该用户已被删除
发表于 2006-12-17 12:18:06 | 显示全部楼层 来自 江苏苏州
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-6-8 04:43 , Processed in 0.063396 second(s), 24 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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