-
zyy
用Matlab实现的简单的二维主成分分析算法,最后以点阵图输出结果(Using Matlab realize a simple two-dimensional principal component analysis algorithm, the final output to bitmap)
- 2007-08-31 09:12:36下载
- 积分:1
-
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
-
isomap
ISOMAP 基本算法,实现降维,在matlab2015版本上实现。(ISOMAP basic algorithm to achieve dimensionality reduction.)
- 2018-12-02 14:15:30下载
- 积分:1
-
tr
说明: 用于提取chebeshev滤波器的传输零点的一个小程序(Chebeshev filter for extracting a small program transmission zeros)
- 2013-11-04 10:35:35下载
- 积分:1
-
pose_estimation_code_release_v1.21
动作识别--姿势估计--c++和matlab--经过测试--能够运行(action recognition)
- 2014-07-28 15:15:47下载
- 积分:1
-
sift
sift算法的基础论文,很经典,还有一篇sift的讲解,由于上传限制,如果有需要可以向本人索取(sift algorithm based on papers, very classic, there is a sift in the talks, the upload limit, and if necessary I can be obtained)
- 2010-12-11 12:29:11下载
- 积分:1
-
pmlfjw
时域有限差分、矩量法做三维平面散射,pml边界条件,并与mur对比(Finite-difference time-domain method of moments to do three-dimensional plane scattering, pml boundary conditions, and compare with mur)
- 2014-06-20 02:37:26下载
- 积分:1
-
jishiqi
动态倒计时牌,目标时间(即倒计时截至时间)的年、月、日、时、分、秒以及倒计时主题可以根据不同主题由用户动态设定,并且在此设定基础上在屏幕上显示距离相关主题到达之时还有n年、n天和n秒(其中的三个n各不相同,且随着程序运行动态变化),以北京时间作为主要显示板块,同时显示纽约、伦敦时间的附加倒计时板块。程序中除了刚运行时给出一次当前标准时间值(或读出系统当前时间)外,在程序运行期间应在自己独立的用户时钟控制下,而不受外界输入影响和系统时间的束缚。(Dynamic countdown, the target time (ie, as the countdown time) of the year, month, day, hour, minute, second, and the countdown theme can set different themes by the users, and in this setting is displayed on the screen on the basis of distance-related There are n the theme of the time of arrival, n day n seconds (one of the three different n, and with the dynamic program runs), to Beijing as the main display section, also shows New York, London time, the additional countdown Plate. In addition to just run the program once the current standard time value is given (or read the current system time), but during the program should be independent in their own under the control of the user clock, and free from outside influence and input system time constraints.
)
- 2011-05-07 17:14:32下载
- 积分:1
-
jianmosuanfa
数学建模各种算法介绍,共三十章,每章附详细例子及相应matlab代码(Mathematical modeling of various algorithms introduced total of thirty chapters, each with detailed examples and the corresponding matlab code)
- 2011-09-28 11:24:05下载
- 积分:1
-
线性调频信号的速度多普勒模糊函数chirp-ambiguity
线性调频信号的速度多普勒模糊函数,有三维以及二维截面图(The speed of linear frequency modulation signal doppler fuzzy function, there are three dimensional and two dimensional section graph)
- 2020-07-08 08:48:57下载
- 积分:1