-
mfileshowto
How to create m-files in Matlab guide.
- 2009-05-19 14:35:58下载
- 积分:1
-
Optimization-experiments
学习用matlab求解最优化问题,提高matlab实际应用能力(Learn to use matlab to solve the optimization problem, the ability to improve the practical application of matlab)
- 2011-07-24 13:21:11下载
- 积分:1
-
ANN_RBF_LMS
fuel supply systeme control grid
- 2013-04-28 16:14:52下载
- 积分:1
-
Untitled
用matlab仿真模糊控制器,有一定的帮助(fuzzy pid controller)
- 2009-05-08 12:40:50下载
- 积分:1
-
recognition-figure
Hello! i ll show that the code is used to recognize the face of someone, it s his job
- 2013-08-03 04:08:49下载
- 积分:1
-
gailvfenxi
对实测获取的风压数据进行处理,评估风压分布的概率特性。(Evaluation of measured to obtain the wind pressure of data processing, the probability of wind pressure distribution characteristics.)
- 2015-09-03 15:43:10下载
- 积分:1
-
tracking
program in matlab code
- 2010-07-16 10:55:23下载
- 积分:1
-
music(doa)
doa估计经典music 算法
构造简单入射信号,利用7天线阵接收信号,进行波达方向估计.(doa estimated classical music used to construct simple incident signals, using seven antenna reception of signals for DOA estimated.)
- 2006-10-31 15:41:52下载
- 积分:1
-
FE-GA
This is a matlab source code of genetic algorithm for optimizing a features based on KNN classifier... the data is available in matlab environment.This code ready to implement.
- 2014-12-25 20:12:29下载
- 积分:1
-
li9_23
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)...
*()
- 2010-10-17 21:53:14下载
- 积分:1