-
Matlab_2_1
matlab讲义
多的不说了,开放源代码!就是开放!(matlab handouts do not say more, open source! Is open!)
- 2007-08-20 16:04:16下载
- 积分: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
-
wq123
说明: matlab gui 界面,很简单的一个界面(matlab gui interface, a simple interface)
- 2010-04-17 23:26:56下载
- 积分:1
-
zjdy
doing的终极地狱完整版。可以说doing的这个版本在ES2架构中算首屈一指的,虽然他说自己的作品很粗糙,但在多年来的国内MUD界来说,其严谨细致的思路及程序写法是绝对可以值得借鉴学习。可惜doing曾经说过,不太有可能再写文字MUD,如果可能再写也不会做现有hell架构的MUD。但这个版本足以是我们受益非浅了。(doing the ultimate hell full version. You can say that doing this version ES2 architecture considered second to none, although he says his work is very rough, but in the domestic sector has a MUD, its strict and meticulous thinking and program wording is definitely worth learning to learn. Unfortunately, doing once said, is not possible to write a text MUD, if possible, do not write it hell existing architecture MUD. But this version is that we greatly benefit from a sufficient.)
- 2014-09-04 08:16:37下载
- 积分:1
-
bcc
单目标细菌群体趋药性算法,自己编写,可运行(
Specific examples of DBCC algorithm)
- 2020-08-23 14:28:17下载
- 积分:1
-
Chomsky
chomsky文法判断,0,1,2,3四种文法类型的判断(chomsky)
- 2009-12-28 19:49:50下载
- 积分:1
-
oqpsk
说明: OQPSK的调制解调程序,希望对初学的你有所帮助
(OQPSK modulation and demodulation process, you want to be helpful for beginners)
- 2011-04-11 10:19:57下载
- 积分:1
-
zuiduanlu
这是一个图论算法的程序,可以用于图论中寻找最短路径的问题。里面有具体说明。(This program is a graph theory algorithm can be used to find the shortest path problem in graph theory. There are specific instructions.)
- 2013-04-23 16:44:51下载
- 积分:1
-
Logistic_Regression
正规化的逻辑回归,可实现图像的分类识别,如人脸识别,数字识别(Logistic Regression with regularisation, can be used for image classification)
- 2015-03-23 14:02:53下载
- 积分:1
-
CGAM_model
CGAM热电联产系统的优化模型,结合热经济学和火用分析,2个目标函数,5个决策变量(Optimization Model CGAM cogeneration systems, combined heat economics and exergy analysis, two objective functions, five decision variables.)
- 2021-04-28 14:48:43下载
- 积分:1