登录
首页 » matlab » li9_23

li9_23

于 2010-10-17 发布 文件大小:1KB
0 108
下载积分: 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 个回复

  • eramo
    It is the implement analysis of the following paper "V. Eramo and M. Listanti, Performance Analysis of Optical Packet Switches equipped with Multicast Wavelength Converters. IEEE, ICC, (2006)."
    2013-01-25 19:27:05下载
    积分:1
  • dwtwm
    This program embed watermark in the wavelet coefficients.Recovery of watermark possible even in presence of noise.Evaluated with psnr
    2011-10-17 08:40:32下载
    积分:1
  • DFIG-Rotating-coordinate-model
    根据双馈电机在两相同步旋转坐标系上的数学模型,构建了双馈电机基于MATLAB S-函数的仿真 模型(According DFIG in two-phase synchronous rotating coordinate system mathematical model was constructed DFIG based MATLAB S-function simulation models)
    2013-10-09 19:02:35下载
    积分:1
  • PF
    此程序是计算电力系统潮流的通解,通过支路法不断更新参数(This procedure is the general solution of the power flow calculation, continuously updated through the branch method parameters)
    2013-12-09 15:15:05下载
    积分:1
  • DP
    说明:  基于动态规划算法对混合动力汽车能量管理策略建模后进行问题计算(Problem calculation of hybrid electric vehicle energy management strategy based on dynamic programming algorithm)
    2019-01-21 17:19:48下载
    积分:1
  • TXT2RGB
    一个在matlab中读取txt,并将其中的内容转化为RGB图片的一个例子,用于图像还原。(One read in matlab txt, and wherein the content into an example of a picture, the image reduction.)
    2016-04-07 10:38:45下载
    积分:1
  • LPFleida
    Pf粒子滤波实现的目标跟踪程序,可实现针对非高斯噪声情况下的跟踪(Pf particle filter to achieve tracking procedures, can be non-Gaussian noise for tracking cases)
    2010-07-19 10:17:42下载
    积分:1
  • xitongbianshi2
    系统辨识2仿真程序,含有系统辨识书中剩余3章的全部matlab的程序代码,可以供下载!(xitongbianshi2fangzhenchengxu)
    2010-12-27 10:41:25下载
    积分:1
  • License-plate-recognition
    “License-plate-recognition-01-modified-1.zip”使用Matlab,实现自动车牌分割、矫正、识别。(the code can abtain auto-segmentation,and auto-recognition of license plate.)
    2012-03-27 21:49:56下载
    积分:1
  • SDR_matlab
    多通道软件化软件无线电发射机实现程序,采样速率为25KHz,基于多相滤波的8通道发射机源程序。(Multi-channel SDR(soft defined radio) )
    2010-08-27 00:28:10下载
    积分:1
  • 696518资源总数
  • 104349会员总数
  • 32今日下载