-
smooth
SMOOTH uses a vectorized implementation that may be slow when X and/or FRAME_LENGTH are very large. The number of elements that are used for calculation is length(X)*FRAME_LENGTH. The algorithm vectorizes the operation by creating a matrix of indexes and extracting its diagonals. E.g. for a vector of length 4 and frame_length of 2, the algorithm creates a temporary zero-padded matrix x2 from which it creates a set of indexes:
- 2010-06-11 15:43:35下载
- 积分:1
-
SSUM
说明: 非常好的数字处理教程,可以从中学到如利用matlab产生各种音频(Very good tutorial digital processing, can learn, such as the use of matlab have a variety of audio)
- 2008-12-03 05:52:42下载
- 积分:1
-
SpaRSA_2.0
Sparse Reconstruction by Separable Approximation
- 2011-09-02 12:23:24下载
- 积分:1
-
BPF
Matlab GUI for bandpass filters
- 2010-09-24 22:27:48下载
- 积分: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
-
xi5
阻尼递推最小二乘法,用于系统辨识,效果良好(Damped least square method, used for system identification, the effect is good)
- 2011-05-08 12:38:01下载
- 积分:1
-
Cp
说明: 风能利用系数计算模型风能利用系数计算模型风能利用系数计算模型(Wind energy utilization factor calculation model)
- 2012-06-06 09:29:46下载
- 积分:1
-
UnderwaterCommunicationModel
a matlab file to develop models for underwater acoustic communication networks
- 2013-09-10 23:19:06下载
- 积分:1
-
PMSG-paper
永磁直驱风机相关文献,对于初学者,你值得一看(PMSG paper)
- 2014-11-04 11:22:37下载
- 积分:1
-
GS
说明: 基于地统计半变异函数的单Y拓阶程序,由MATLAB编写,调用定阶来确定拓阶数,调用拓阶来完成Y的拓阶,输出为M*N矩阵(Single Y statistical semi variation function extension order based procedures, prepared by MATLAB, call order to determine the extension order number, call the extension order to complete the Y extension of the order, the output for the M*N matrix)
- 2014-11-24 20:15:39下载
- 积分:1