-
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
-
canon
用matlab实现的钢琴曲卡农,自动播放,很好听的(the piano music in matlab)
- 2012-05-17 12:22:10下载
- 积分:1
-
qingzhuoyinpinpu
清浊音处理的MATLAB程序,用汉明窗来实现。(MATLAB program Voicing treated with Hamming window to achieve)
- 2014-01-06 09:27:28下载
- 积分:1
-
poisson-process
理解掌握
Poisson过程的理论,了解随机过程的模拟实现技术,学习并掌握在实际中如何检验给定的随机过程是否为Poisson过程
(Poisson process, understand and grasp the theory of stochastic processes to achieve understanding of simulation techniques to learn and master in practice how to verify whether a given stochastic process for the Poisson process)
- 2015-03-26 14:31:44下载
- 积分:1
-
L1SRACV
说明: 压缩感知DOA算法,利用1范数方法进行优化重构,进行方位角估计(Compressed Sensing DOA algorithm, using 1-norm method to optimize reconstruction and azimuth estimation)
- 2019-04-17 13:29:05下载
- 积分:1
-
matlabANDmySQL
matlab里面调用SQL相信许多朋友都需要(matlab which calls SQL believe many friends need)
- 2007-09-01 12:36:42下载
- 积分:1
-
memd
经验模态分解m源程序,matlab实现,一般用于信号分析处理...(The EMD program,executed in matlab)
- 2021-01-26 16:28:36下载
- 积分:1
-
灰色系统理论建模源代码 张
灰色预测是就灰色系统所做的预测。所谓灰色系统是介于白色系统和黑箱系统之间的过渡系统。其具体的含义是:如果某一系统的全部信息已知为白色系统,全部信息未知为黑箱系统,部分信息已知,部分信息未知,那么这一系统就是灰色系统。(Grey prediction is the prediction of grey system. The so-called grey system is a transitional system between the white system and the black box system. Its concrete meaning is: if all information of a system is known as a white system, all information is unknown as a black box system, some information is known, and some information is unknown, then this system is a grey system.)
- 2020-06-18 02:20:02下载
- 积分:1
-
matpower-Manual
说明: 用于各种潮流计算和最有潮流计算的matpower 中文手册(For various flow calculation and the most current computing matpower Chinese manual)
- 2021-05-13 02:30:02下载
- 积分:1
-
pso.matlab
说明: 带交叉因子的粒子群优化算法matlab源程序(pso.matlab)
- 2010-04-12 15:47:44下载
- 积分:1