登录
首页 » matlab » li9_23

li9_23

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

  • ga_demo
    遗传算法matlab程序,很全面,很实用,欢迎下载。(geneticAlg matlab program)
    2009-10-19 12:47:03下载
    积分:1
  • OFDM-Simulation
    包含OFDM系统仿真,星状导频仿真,瑞利信道估计以及FFT与DFT算法复杂度比较。集合了12个项目,呵呵。(Contains the OFDM system simulation, the astroid pilot frequency simulation, the Rayleigh channel estimates as well as FFT and the DFT algorithm order of complexity compares. Has gathered 12 projects, ha-ha. )
    2009-06-08 09:58:37下载
    积分:1
  • danziyoudushoupozhendong
    说明:  实现单自由度受迫振动,图像绘制,我们可以绘制出单自由的图像出来,供我们参考(we can use this specification for program to draw the picture,this program is writed by matlab and it is easy to understand.)
    2011-03-08 16:05:36下载
    积分:1
  • MATLAB7.0inDigitalSignalProcessing
    MATLAB7.0在数字信号处理中的应用本书针对广泛的信号处理领域,详细介绍了MATLAB7.0提供的信号处理工具箱函数及其使用(MATLAB7.0 book in digital signal processing applications in signal processing for a wide range of areas, detailing MATLAB7.0 Signal Processing Toolbox provides functions and their use)
    2014-01-16 20:02:59下载
    积分:1
  • matlab_Otsu
    此算法是Otsu提出的最大类间方差法,利用matlab进行分割图像(This algorithm is proposed by Otsu Otsu method, used to segment image in matlab)
    2009-03-05 14:37:54下载
    积分:1
  • Q3.19
    此matlab例程用于验证离散时间傅里叶变换的调制性质。(Matlab routines used to validate the discrete-time Fourier transform the nature of the modulation.)
    2009-05-02 22:40:11下载
    积分:1
  • WX_Matlab_code
    This is the code for spatial model
    2012-04-17 18:15:14下载
    积分:1
  • evolution-game-matlab
    一个演化博弈的小程序。非常有用。用matlab写的,非常非常有用。(a evolution game thoery simulation,a matlab program,it s very useful.really usefull,really really usefuly. kao,20 zifu?)
    2013-09-08 14:26:05下载
    积分:1
  • Laser-based_Timber_Profiling
    Laser-based的建材研究,报告中附有完整的matlab 源码。(Defective timber is unwanted by the customers therefore it is separated from the normal timbers as soon as it comes out of the sculpting process before it is sent to the market. Therefore the objective of this project is to use a laser-based technique to identify the defects, the type of defects and the quality of the timber.)
    2010-07-08 17:50:00下载
    积分:1
  • 1
    说明:  matlab教程 含有较多的函数语句讲解以及函数命令的使用(matlab tutorial contains more statements to explain the function and the function of the use of the command)
    2010-02-26 14:20:54下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载