登录
首页 » matlab » li9_23

li9_23

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

  • AntSystem-WithPlay
    基本蚁群算法求解TSP问题的MATLAB源代码(TSP Ant Colony Algorithm for the basic question of the source code of MATLAB)
    2009-06-02 01:13:20下载
    积分:1
  • MATLAB-logis
    matlab 关于logistics映射的映射图,希望对您有所帮助(matlab logistic)
    2012-04-20 11:38:52下载
    积分:1
  • wuxianshepinshineidingwei
    这个是关于无线射频识别室内定位系统的编程框架,如果你想学习室内定位系统的编程,可以参考这个,可能会给你启发(This is about the RFID indoor positioning system, programming framework, if you want to learn programming indoor positioning system, can refer to this, it might give you inspiration)
    2011-06-06 21:34:24下载
    积分:1
  • Debye
    Debye级数展开模型,计算均匀球形粒子散射角——散射光强曲线: 1. RB1.m 计算第一类Ricatti-Bessel函数的函数 2.RB2.m 计算第二类Ricatti-Bessel函数的函数 3. Alegendr.m 计算角函数 和 的函数 4. MieCoeff.m 计算米尔系数的函数 5. Amp.m 计算散射光复振幅的函数 6. DebyeIntensity.m Debye级数展开模型画均匀球形粒子散射角-光强图 (Debye series expansion model to calculate the uniform spherical particles scattering angle- scattering intensity curve: 1. RB1.m calculated first class Ricatti-Bessel function of the function 2. RB2.m calculate the second category Ricatti-Bessel function of the function 3. Alegendr.m computing angle functions and function 4. MieCoeff.m Mill coefficient calculation function 5. Amp.m calculate the scattering amplitude recovery function 6. DebyeIntensity.m Debye series expansion model painted uniform spherical particles scattering angle- light intensity diagram)
    2013-10-05 15:07:04下载
    积分:1
  • emdPHHT
    基于HHT的matlab实现,通过EMD对信号进行分解,利用HHT变化得到时频谱(Based on the signal matlab HHT transform implementor)
    2015-03-28 11:14:02下载
    积分:1
  • shuzhifenxi
    数值分析实验报告!包含多个实验! 实验一 非线性方程求根 实验二 线性代数方程组的解法 --------列主元Gauss消元法 实验三 线性代数方程组的解法 ——Gauss-Seidel迭代法等(Numerical Analysis of the experimental report! Contains more than one experiment! Experiment 1 Experiment 2 roots of nonlinear equations of linear algebraic equations the solution out PCA Gauss elimination method experiment trilinear solution of algebraic equations- Gauss-Seidel iteration method, such as)
    2008-06-29 02:38:17下载
    积分:1
  • GoP
    this program is GOP. GOP is group of frame descriptor. this descriptor is define a group of picture based on Scalable Color Descriptor (SCD)
    2013-08-25 16:50:48下载
    积分:1
  • myfft
    用于计算fft的MATLAB程序,采用时间提取的基2算法,计算N点的FFT,程序中会自动将N部位2的n次方个点(Used to calculate the fft of the MATLAB program, using the time base 2 extraction algorithm, calculation of N point FFT, the program will automatically N parts of two of the n-th power points)
    2009-10-28 16:19:10下载
    积分:1
  • matlab
    飞思科技《Matlab7基础与提高》书籍源码,希望对大家有用(Fly think technology "Matlab7 foundation and improve" books, the useful source code)
    2011-09-24 09:41:35下载
    积分:1
  • DSTATCOM
    说明:  d-statcom reactive power inject
    2019-04-29 23:02:24下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载