登录
首页 » matlab » li9_23

li9_23

于 2010-10-17 发布 文件大小:1KB
0 230
下载积分: 1 下载次数: 19

代码说明:

  clear all I=imread( lena.bmp ) figure imshow(I) I2=imrotate(I,-4, bilinear ) 逆时针旋转4度 figure imshow(I2) I3=fliplr(I) 垂直镜像 figure imshow(I3) I4=imresize(I,0.5, bilinear ) 缩小为原图的1/2 figure imshow(I4) A=double(I) 转换为double类型 计算7个不变矩 [nc,nr]=size(A) [x,y]=meshgrid(1:nr,1:nc) 得到网格 x=x(:) y=y(:) A=A(:) m.m00=sum(A) if m.m00==0 m.m00=eps end m.m10=sum(x.*A) m.m01=sum(y.*A) 计算均值 xmean=m.m10/m.m00 ymean=m.m01/m.m00 计算中心矩(li9_23.rar cm.cm00=m.m00 cm.cm02=(sum((y-ymean).^2.*A))/(m.m00^2) cm.cm03=(sum((y-ymean).^3.*A))/(m.m00^2.5) cm.cm11=(sum((x-xmean).*(y-ymean).*A))/(m.m00^2) cm.cm12=(sum((x-xmean).*(y-ymean).^2.*A))/(m.m00^2.5) cm.cm20=(sum((x-xmean).^2.*A))/(m.m00^2) cm.cm21=(sum((x-xmean).^2.*(y-ymean).*A))/(m.m00^2.5) cm.cm30=(sum((x-xmean).^3.*A))/(m.m00^2.5) im(1)=cm.cm20+cm.cm02 im(2)=(cm.cm20-cm.cm02)^2+4*cm.cm11^2 im(3)=(cm.cm30-3*cm.cm12)^2+(3*cm.cm21-cm.cm03)^2 im(4)=(cm.cm30+cm.cm12)^2+(cm.cm21+cm.cm03)^2 im(5)=(cm.cm30-3*cm.cm12)*(cm.cm30+cm.cm12)... *((cm.cm30+cm.cm12)^2-3*(cm.cm21+cm.cm03)^2)... +(3*cm.cm21-cm.cm03)*(cm.cm21+cm.cm03)... +(3*(cm.cm30+cm.cm12)^2-(cm.cm21+cm.cm03)^2) im(6)=(cm.cm20-cm.cm02)*((cm.cm30+cm.cm12)^2-(cm.cm21+cm.cm03)^2)... +4*cm.cm11*(cm.cm30+cm.cm12)*(cm.cm21+cm.cm03) im(7)=(3*cm.cm21-cm.cm03)*(cm.cm30+cm.cm12)... *((cm.cm30+cm.cm12)^2-3*(cm.cm21+cm.cm03)^2)... +(3*cm.cm12-cm.cm30)*(cm.cm21+cm.cm03)... *()

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • matlabprogrammes
    说明:  本程序是关于FIR和IIR滤波器的设计现(the procedures of FIR and IIR filter design is)
    2006-02-22 21:00:23下载
    积分:1
  • Two-linkage-mechanism
    使用matlab的simulink工具箱,对平面二连杆机构进行动态仿真(Matlab dynamic simulation of Two-linkage mechanism)
    2014-01-12 19:53:19下载
    积分:1
  • ht1d_fem3
    heat equation cranknicolson
    2011-08-15 01:43:36下载
    积分:1
  • Control_system
    控制系统计算机辅助设计——MATLAB语言与应用,是一本不错的书,这是书中的源程序(Control System Computer Aided Design- MATLAB language and applications, is a good book, this is the book s source code)
    2008-12-27 14:44:57下载
    积分:1
  • Hungary_matlab
    匈牙利算法的matlab实现,自己处理的,克服了大部分的死循环问题(Hungary matlab solve death circle)
    2013-02-05 16:37:50下载
    积分:1
  • qthdchaoliu
    配电网潮流计算根据她的特点提出这个方法配电网前推回代法潮流计算(qiantuihuidai math)
    2010-01-12 19:44:20下载
    积分:1
  • mfile-of-book-
    a good book and mifie in pde
    2011-09-27 21:29:11下载
    积分:1
  • angle2
    Gpr new transmiter for better detection
    2011-06-11 15:38:33下载
    积分:1
  • kmeansPP
    一个有效的实现k - means+ +聚类多元数据算法。已经证明,这种算法有一个预期值的上界值。此外,k - means + +具有较好的收敛性。(An efficient implementation of the k-means++ algorithm for clustering multivariate data. It has been shown that this algorithm has an upper bound for the expected value of the total intra-cluster distance which is log(k) competitive. Additionally, k-means++ usually converges in far fewer than vanilla k-means.)
    2021-01-22 19:38:45下载
    积分:1
  • SER
    OFDM Channel schemes
    2009-02-14 00:33:25下载
    积分:1
  • 696516资源总数
  • 106794会员总数
  • 11今日下载