登录
首页 » matlab » li9_23

li9_23

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

  • Practice2
    说明:  车厢调度:程序对栈的任何存取(即更改,读取和状态判别等操作必须借助于基本操作。(Train scheduling: proceedings of the stack of any access (that is, changing, reading and state identification must be by means of basic operations such as Operation.)
    2010-04-03 11:19:49下载
    积分:1
  • Simpson
    这是用复化simpson方法求解数值积分的一种方法(This is the method used to solve complex numerical integration of the simpson' s method)
    2011-07-15 23:15:58下载
    积分:1
  • Computational-Photonics--An-Introduction-with-MAT
    Computational Photonics, An Introduction with MATLAB
    2013-07-24 21:56:26下载
    积分:1
  • antenna_near_a_conducting_cylinder_6673
    this is a matlab code for antenna of near a conducting cylinde and huygens principle.
    2012-10-07 19:42:47下载
    积分:1
  • RedTrack
    Real time tracking of the red object in matlab
    2015-04-16 14:28:16下载
    积分:1
  • txt991
    雷达目标一维距离像仿真实验,以及多目标成像(Radar Target Range simulation, and multi-target imaging)
    2020-09-20 17:07:52下载
    积分:1
  • pwminverter2
    Basic Pulse width modulation technique
    2010-10-02 13:32:14下载
    积分:1
  • ami
    ami信号的波形图。包括时域波形,和频域波形(ami signal waveforms. Including time-domain waveform, and frequency domain waveform)
    2008-05-06 12:05:38下载
    积分:1
  • dea
    这是用来进行数据包络分析的matlab代码。 这是用来进行数据包络分析的matlab代码。(This is used for data envelopment analysis matlab code. This is used for data envelopment analysis matlab code.)
    2013-08-17 21:05:04下载
    积分:1
  • matlab-program-resource
    详解MATLAB/Simulink通信系统建模与仿真/刘学勇编著 配套的matlab程序(Detailed MATLAB/Simulink modeling and simulation of communication systems/Liu Xueyong compiled matching matlab program)
    2014-10-14 19:40:35下载
    积分:1
  • 696518资源总数
  • 106010会员总数
  • 4今日下载