登录
首页 » matlab » li9_23

li9_23

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

  • lqrdmdfe
    matlab code for lqrdmdfe algorithm in mimo ofdm systems for 4x4 and 8x8 systems.
    2010-10-19 16:59:11下载
    积分:1
  • dcpsksimulate
    通信仿真中的混沌数字键控Matlab分析程序,包括时域和频域(Chaos digital key analytical procedures)
    2013-10-04 10:24:23下载
    积分:1
  • 83746585matllab
    matlab求解二阶全微分方程解析解的程序(the programming of resolving the Second order full differential equation by matlab)
    2012-09-24 11:28:57下载
    积分:1
  • NN_UKF
    神经网络(NN)结合无迹卡尔曼滤波(UKF)实现状态预测,使用的是matlab,需要结合其他理论学习,压缩包中有相应的链接,其他可自行下载(Neural Networks (NN) combine unscented Kalman filter (UKF) implement state prediction, using matlab, requires a combination of other theories of learning, compressed package the appropriate link to download other)
    2015-11-16 01:11:11下载
    积分:1
  • BP神经网络滚动轴承诊断
    说明:  BP神经网络轴承故障诊断,列举几种常见轴承故障信号,使用matlab编写BP神经网络进行诊断(Bearing fault diagnosis based on BP neural network)
    2021-01-29 23:08:38下载
    积分:1
  • MATLAB_Guide_Finite_Elements_Interactive_Approach
    Matlab finite element finite guide book
    2010-06-05 09:12:49下载
    积分:1
  • BaoHemiaoshu
    此函数用来演示自动控制系统中的饱和非线性特性的描述函数 此函数是要调用输入的A矩阵中的元素 输入变量a,k的含义分别为:(This function is used to demonstrate automatic control system of the description of the saturation nonlinearity function this function is to call the input of the A element in the input variables a, k means are:)
    2010-12-27 22:54:27下载
    积分:1
  • CS_OMP
    压缩感知中一种非常典型的OMP重构的程序,对压缩感知初学者的理解非常有帮助(Compressed sensing a very typical OMP in the reconstruction process, the understanding of compressed sensing is very helpful for beginners)
    2011-04-27 09:48:03下载
    积分:1
  • CMAC
    实现小脑模型逼近函数的程序(初学,仅供参考)(Realize the cerebellum model approaching function of the program )
    2012-03-23 16:28:51下载
    积分:1
  • matlabbasis
    程序代码说明 P0201:MATLAB赋值 P0202:MATLAB中的for循环 P0203:MATLAB中的for循环和if条件 P0205:MATLAB图像处理的基本操作 P0206:MATLAB高级图像处理操作 P0207:根据RGB图像创建一幅灰度图像 P0208:二值图像的取反操作 P0209:用imshow函数显示图像(code P0201 Note : MATLAB assignment P0202 : MATLAB for the cycle P0203 : MATLAB for the cycle, and if conditions P0205 : MATLAB image processing basic operation P0206 : High MATLAB image processing P0207 : According to RGB images to create a gray-scale image P0208 : binary images from the operation of the anti-P0209 : use imshow function displays images)
    2007-06-18 23:50:07下载
    积分:1
  • 696518资源总数
  • 106265会员总数
  • 10今日下载