登录
首页 » matlab » li9_23

li9_23

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

  • segundo_trabalho
    system control second ordem
    2014-08-20 13:59:53下载
    积分:1
  • netlibfiles
    非线性规划,二次规划SQP,matlab程序求最优值(Nonlinear Programming)
    2014-09-14 00:24:28下载
    积分:1
  • Optimalreceptionofadditivewhite
    本设计主要对4PSK调制方式的信号,利用MATLAB的m文件进行最佳接收机的设计与仿真。对输入的叠加噪声的4PSK调制信号进行接收,利用相关解调器来实现信号解调,及最大似然准则来实现检测器。在相关解调器中,接收信号分别与基函数 和 相乘再积分。在检测器中,利用相位来判断输出,从而最终得到接收的数据。采用随机二进制数通过4PSK调制后叠加高斯白噪声再对设计的接收机进行测试,从测试的结果可看出,在信噪比大于-8dB时,误码率为0,说明该接收机较好的实现了抗噪声性能。(The design of the main 4PSK modulation mode of the signal, the use of MATLAB m file for the best receiver design and simulation. The 4PSK modulated signal of the input superimposed noise is received, and the demodulator is realized by the relevant demodulator, and the maximum likelihood criterion is used to realize the detector. In the associated demodulator, the received signal is multiplied by the basis function and multiplied by the basis function. In the detector, the output is judged by the phase, and finally the received data is obtained. Using the random binary number through 4PSK modulation after the superposition of white noise and then the design of the receiver to test the test results can be seen in the signal to noise ratio greater than-8dB, the bit error rate is 0, indicating that the receiver is better The realization of the anti-noise performance.)
    2020-10-24 00:07:22下载
    积分:1
  • optical-filter
    sevenlayer optical filter comparision the analytical method with reflections
    2011-10-01 17:40:58下载
    积分:1
  • pv_3xiang_pqcontrol
    三相并网逆变器,可以进行并网的功能,采用功率控制(Three-phase grid-connected inverter, and network functions can be performed using the power control)
    2020-11-09 16:09:47下载
    积分:1
  • xiaoboshenjingwangluodeshijianxulie
    基于matlab的小波神经网络的时间序列计算,欢迎大家使用。(Time series matlab wavelet neural network-based computing, welcome everyone to use.)
    2014-01-08 17:21:17下载
    积分:1
  • zhuiganfa
    追赶法是适用于三对角矩阵的线性方程组求解的方法,并不适用于其他类型矩阵。(Pursuit method for solving tridiagonal matrix of linear equations, does not apply to other types of matrix.)
    2012-06-09 09:32:07下载
    积分:1
  • mixGMMmatlab
    混合高斯建模方法是目标检测中的一种重要方法( mix gauss detection object )
    2010-05-20 18:55:23下载
    积分:1
  • DSP-and-problem-solution
    数字信号处理与题解。DSP理论入门电子书,书中有简单的Matlab编程,以及简单的滤波器设计(Digital signal processing and problem solution. Introduction to DSP theory book, the book has a simple Matlab programming, and simple filter design)
    2011-11-07 19:20:58下载
    积分:1
  • Area-of-solving
    利用matlab对图像所感兴趣的区域进行面积计算并且求解(Use matlab image of the region of interest and area calculations carried out to solve)
    2013-11-25 16:22:26下载
    积分:1
  • 696516资源总数
  • 106459会员总数
  • 0今日下载