-
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
-
matchingpursuit
matching pursuit 算法,matlab实现,信号稀疏分解方式的一种,适合与信号在超完备的原子库中稀疏分解。matchingpursuit.m(A matching pursuit algorithm. It fits data from a set of dictionary
elements by orthogonally projecting the data onto elements of the
dictionary of vectors such that the energy in each projection is
maximized. In constrast to G-S, the residual is orthogonalized, not
the basis vectors)
- 2021-03-08 09:59:28下载
- 积分:1
-
FaultDiagnosis_Fangzhen
仿真信号,及其对其进行故障诊断的方法程序,可用于实际信号的分析(Simulated signals, and its method of fault diagnosis procedures can be used for the actual analysis of the signal)
- 2013-07-17 15:24:54下载
- 积分:1
-
FM
说明: matlab实现数字调频与解调,并进行结果显示。(matlab digital FM demodulation, and display the results.)
- 2013-03-12 20:40:07下载
- 积分:1
-
BayesianMAP
Bayesian based Maximum A Posterior .
It is used for Image Restoration
- 2009-11-11 10:20:59下载
- 积分:1
-
BM3D
采用最新的BM3D(三维块匹配)方法进行的灰度图像,彩色图像和视频图像的去噪(Using the latest BM3D (three-dimensional block-matching) method for image, color images and video image denoising)
- 2010-12-07 10:39:52下载
- 积分:1
-
Adaptive-Median-Filtering
adaptive median fillter
- 2011-06-27 12:40:06下载
- 积分:1
-
BPMatlab
利用Matlab实现BP神经网络的程序,给出了具体的例子,写得比较详细。(The application of Matlab to achieve BP neural network procedures, specific examples are given with more detail.)
- 2009-05-05 12:10:58下载
- 积分:1
-
code
KNN分类器(K-Nearest Neighbor classification)可以简单得将几种类别分开 (KNN classifier)
- 2011-09-26 15:55:39下载
- 积分:1
-
Reed_Solomon_code_matlab
rs编码的matlab程序,很详细,方便初学者学习(rs encoded matlab procedures, very detailed, easy for beginners to learn)
- 2008-04-07 21:48:48下载
- 积分:1