登录
首页 » matlab » li9_23

li9_23

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

  • G-N
    说明:  此文件包含用G-N法,修正G-N法,L-M法,Lsqnonlin求解非线性最小二乘优化问题MATLAB源代码,请大家参考(This file contains the method with the GN, GN law amendment, LM Law, Lsqnonlin MATLAB nonlinear least squares optimization source code, please refer to)
    2010-04-07 22:01:50下载
    积分:1
  • glpj
    基于MATLAB高通低通滤波器源程序,很详细的源程序,有注释的哦!(good and Strong!you will like it!if you fell good ,please support me!)
    2010-05-23 10:27:01下载
    积分:1
  • mpc_2
    this is mpc ezample...
    2014-01-30 03:40:17下载
    积分:1
  • AdaptiveLineEnhancer1
    自适应谱线增强 从噪声信号中消噪得到有用信号(Adaptive Line Enhancer (ALEThe goal is to remove the noise signal from the measured signal to obtain the signal of interest. )
    2010-11-13 11:14:09下载
    积分:1
  • LP-filter
    low pass filter souce code
    2009-05-12 15:57:43下载
    积分:1
  • mengben_v23
    各种资源分配算法实现,有循环检测,周期性检测,虚拟力的无线传感网络覆盖。( Various resource allocation algorithm, There are cycle detection, periodic testing, Virtual power wireless sensor network coverage.)
    2016-06-18 19:54:46下载
    积分:1
  • 结构动力学算 morison
    结构动力学算例,运用mirison和matlab语言,写了一个波浪力的算例(A numerical example of structural dynamics is given. a numerical example of wave force is written by using mirison and MATLAB language.)
    2020-06-22 02:40:01下载
    积分:1
  • TT
    说明:  图像去雾的matlab源程序,对于学习图像去雾很有帮助(Matlab source code image defogging the demister helpful for learning image)
    2013-03-19 21:08:48下载
    积分:1
  • Matlab-filting
    使用matlab实现各种滤波功能,设计出高通滤波,低通滤波,带通带阻滤波等滤波器(Using matlab to achieve a variety of filtering, to design a high-pass filter, low-pass filtering, band-stop filter bandpass filter)
    2013-03-25 10:31:55下载
    积分:1
  • gaotv5
    神经网络工具包,安装在MATLAB中,使用神经网络计算时需要安装,可以调用其中的函数(Neural network toolkit, installed in the MATLAB, the use of neural network calculation need to install, you can call the function)
    2017-11-17 20:31:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载