-
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
-
smoothmusic
前项平滑技术,是空间普技术中解相干的一种重要方法(former smoothing technology, space technology Pronk decorrelation an important method)
- 2007-04-25 16:52:23下载
- 积分:1
-
matlab100examples
matlab的100个实用源代码例子,包括图像处理,数值计算等常用源代码(matlab source code for the 100 practical examples, including image processing, numerical calculation of the source code used)
- 2011-10-20 22:36:45下载
- 积分:1
-
444
采用动态规划方法实现的目标分配,后面有MATLAB代码(Solving Weapon Target Assignment
Problem with Dynamic Programming)
- 2010-11-05 23:36:00下载
- 积分:1
-
chombo_package_1_A-C
说明: 自适应网格划分通用程序包,美国伯克利大学开发的共享软件包。(Adaptive Mesh generic package, the United States developed at the University of Berkeley's share package.)
- 2006-04-13 21:07:58下载
- 积分:1
-
psocode
optimization of function by PSO
- 2013-08-15 12:28:24下载
- 积分:1
-
exceling-in-matlab6.5
matlab编程的指导教程,其中配有大量M文件的例程,对matlab的初学者很有用(matlab programming tutorial, which Peiyoutailiang M-file routines, useful for beginners matlab)
- 2011-11-08 11:35:18下载
- 积分:1
-
twodgamma
说明: matlab 基于二维伽马函数的光照不均匀图像自适应校正算法(Adaptive correction algorithm of illumination nonuniformity image based on two-dimensional gamma function)
- 2021-02-10 20:09:52下载
- 积分:1
-
MUSIC
一种music方法 对两个测量角度进行仿真分析,包括 目标个数估计和music测角(A music methods of simulation analysis, including two measuring angles of the target number of estimates and music goniometer)
- 2013-03-13 11:26:37下载
- 积分:1
-
bp
说明: 关于BP神经网络的一个MATLAB程序,仿照《智能控制》教材书上的(About a MATLAB BP neural network program, modeled on the intelligent control teaching book)
- 2015-04-10 09:59:00下载
- 积分:1