-
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
-
powerloadingandthresholddistance
根据已有的二维波束成型进行功率分配后的曲线和阈值距离(about the 2d-beamforming of power loading and threshold distance )
- 2010-03-10 15:35:30下载
- 积分:1
-
bulixiangmusic
对不理想环境下信号DOAMUSIC算法的性能仿真分析。(Not an ideal environment for the signal DOA MUSIC algorithm of the performance simulation.)
- 2011-05-14 18:32:38下载
- 积分:1
-
Untitled5_2ASK
2ask调制,波形生成,图像生成,波形识别(2ask modulation, waveform generation, image generation, waveform recognition)
- 2012-08-10 10:31:43下载
- 积分:1
-
GA_MATLAB
以matlab撰写的遗传算法,可以解决工程问题的优化。验证功能良好。(Matlab code for genetic algorithms.
)
- 2010-07-06 17:47:59下载
- 积分:1
-
Power_flow_with_DG.m
This is the Matlab program I developed for power flow. Program can handle system with or without distributed generation (DG).
- 2014-09-20 06:45:52下载
- 积分:1
-
plotvector
绘制玫瑰图,比较matlab原有程序较为先进一些(plot rose map)
- 2011-12-25 21:24:59下载
- 积分:1
-
Elman-
用matlab实现Elman神经网络(Elman neural network using matlab)
- 2013-12-13 22:11:53下载
- 积分:1
-
AudioWatermarking
A local extremum of audio watermarking algorithm, matlab software watermark embedding and extraction operation, also gives some common attack method of audio watermarking attacks.
- 2010-06-18 19:26:12下载
- 积分:1
-
MIT.matlabnew
mit的MATLAB导论教程,适用于MATLAB初学和基础应用。(mit Introduction to the MATLAB tutorial for beginners and the basis for the application of MATLAB.)
- 2009-05-10 21:45:06下载
- 积分:1