-
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
-
Laborator
Exponential negative repartition
- 2012-10-07 15:19:06下载
- 积分:1
-
A-robust-watermarking-method-for-copyright-protec
A robust watermarking method for copyright protection of digital images using WT
- 2015-02-19 22:18:25下载
- 积分:1
-
aodv
It is a basic code for aodv protocol in MANET
- 2014-02-16 12:27:19下载
- 积分:1
-
DCT
图像的基于8*8分块的DCT变换编码 MATLAB编程环境 (Images based on 8* 8 block of DCT transform coding MATLAB programming environment)
- 2010-07-05 21:07:14下载
- 积分:1
-
hist
Histogram in matlab source code
- 2010-05-06 20:54:07下载
- 积分:1
-
plot_hht_3d
对于非平稳信号,用emd分解后,进行hibert变换后,输出时频三维图,(Output frequency of the three-dimensional map)
- 2013-04-18 23:09:00下载
- 积分:1
-
Matlab
Matlab信号处理(刘波等编著)部分程序,内附有一个常用函数清单的PDF文档(Matlab Signal Processing (ed. Liu Bo, etc.) of the program, enclosing a list of commonly used functions PDF documents)
- 2009-09-17 18:37:55下载
- 积分:1
-
Matlabyouxianyuan
介绍了matlab在有限元方法求解中的应用,对于有限元求解有很大的帮助(Introduced in the finite element method matlab in the application of the finite element solution for the great help)
- 2011-01-18 10:19:04下载
- 积分:1
-
fiusao_v41
未来线路预测,分析误差,GPS和INS组合导航程序,本科毕设要求参见标准测试模型。( Future line prediction, error analysis, GPS and INS navigation program, Undergraduate complete set requirements refer to the standard test models.)
- 2021-03-25 16:59:14下载
- 积分:1