-
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
-
prediction_one_step
说明: 利用RBF神经网络实现混沌预测,并结合matlab进行仿真,较好实现其功能(Realize the use of RBF neural network prediction of chaos, combined with matlab simulation, better realize its function)
- 2008-09-05 08:51:15下载
- 积分:1
-
voronoi
matlab生成的voronoi图,可用于多相复合材料的计算问题。(to creat a voronoi )
- 2011-04-20 09:56:03下载
- 积分:1
-
EM-Waves-and-Antennas
a complete treat of EM wave propagation, microwave techniques and antennas + matlab codes
- 2011-09-26 01:32:13下载
- 积分:1
-
me_root_Music
阵列天线中子空间算法中MUSIC算法的一种改进方法即求根MUSIC算法。(Neutron array antenna space MUSIC algorithm, an improved algorithm method that Root MUSIC algorithm.)
- 2013-12-13 10:17:59下载
- 积分:1
-
mb
说明: MATLAB实验的使用模板,供初学者学习和使用
(MATLAB experimental use of templates for beginners to learn and use)
- 2008-11-14 20:36:44下载
- 积分:1
-
gj_case9
求电力系统状态估计ieee9节点 的雅阁比矩阵(Seeking power system state estimation Accord than ieee9 node matrix)
- 2012-10-31 21:46:31下载
- 积分:1
-
New-iris-recognition-method-for-noisy-iris-images
When capturing an iris image under unconstrained conditions and without user cooperation, the image
quality can be highly degraded by poor focus, off-angle view, motion blur, specular reflection (SR), and
other artifacts. The noisy iris images increase the intra-individual variations, thus markedly degrading
recognition accuracy. To overcome these problems, we propose a new iris recognition algorithm for noisy
iris images.
- 2015-03-12 01:31:03下载
- 积分:1
-
psoMatlabMdatal
说明: 粒子群优化算法的基本思想是通过群体中个体之间的协作和信息共享来寻找最优解.(Particle swarm optimization algorithm based on the idea that groups of individuals through collaboration and information sharing to find the optimal solution.)
- 2008-09-27 17:16:25下载
- 积分:1
-
jaibui
采用加权网络中节点强度和权重都是幂率分布的模型,wolf 方法计算李雅普诺夫指数,GSM中GMSK调制信号的产生。( Using weighted model nodes in the network strength and weight are power law distribution, wolf calculated Lyapunov exponent, GSM is GMSK modulation signal generation.)
- 2016-05-09 13:39:47下载
- 积分:1