登录
首页 » matlab » li9_23

li9_23

于 2010-10-17 发布 文件大小:1KB
0 105
下载积分: 1 下载次数: 19

代码说明:

  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)... *()

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • FIR
    使用MATLAB实现FIR滤波器设计,内含详细代码和原理(FIR filter design using MATLAB implementation, containing detailed codes and principles of)
    2009-12-07 12:44:50下载
    积分:1
  • SolveOMP
    说明:  正交匹配追踪,对MP的改进,实现信号的稀疏分解(Orthogonal matching pursuit, the improvement on the MP and the signal is sparse decomposition)
    2010-04-02 16:47:37下载
    积分:1
  • theory
    MPSK MQAM MPAM理论误码曲线对比(MPSK MQAM MPAM theoretical BER curve comparison)
    2013-08-31 19:06:09下载
    积分:1
  • BED
    Autocad Files - Bed - 24 Files
    2011-12-29 19:50:17下载
    积分:1
  • 119128635OMP
    说明:  压缩感知(Compressed sensing),也被称为压缩采样(Compressive sampling),稀疏采样(Sparse sampling),压缩传感 [1] 。它作为一个新的采样理论,它通过开发信号的稀疏特性,在远小于Nyquist 采样率的条件下,用随机采样获取信号的离散样本,然后通过非线性重建算法完美的重建信号 [1] 。压缩感知理论一经提出,就引起学术界和工业界的广泛关注。(Compressed sensing (Compressed sensing), also known as compression sampling (Compressive from), Sparse sampling (Sparse from), Compressed sensing [1].As a new sampling theory, it develops the sparse characteristics of signals, obtains the discrete samples of signals with random sampling under the condition that the sampling rate is much lower than Nyquist sampling, and then perfectly reconstructs the signals through the nonlinear reconstruction algorithm [1].Once the theory of compressed sensing was put forward, it attracted extensive attention from academia and industry.)
    2020-12-09 07:29:19下载
    积分:1
  • circsine
    generates circular sine wave grating
    2010-10-15 19:05:18下载
    积分:1
  • 6e49b3713721
    生成samples.mat文件的相关源程序。需要一百个wav文件输入。(The relevant source files generated samples.mat. Need a hundred wav file input.)
    2011-04-29 17:07:59下载
    积分:1
  • ft
    说明:  信号的时频分布 ,信号的短时傅里叶变换。很有用 学习小波分析的时候会用到哦(The time-frequency distribution, the short time Fourier transform signal)
    2011-07-23 17:01:58下载
    积分:1
  • code_matlab
    MATLAB problem for Poleplacement and state observer system
    2013-11-20 00:18:40下载
    积分:1
  • 边缘检测特征提取
    说明:  边缘检测是图形图像处理、计算机视觉和机器视觉中的一个基本工具,通常用于特征提取和特征检测,旨在检测一张数字图像中有明显变化的边缘或者不连续的区域,在一维空间中,类似的操作被称作步长检测(step detection)。(Edge detection is a basic tool in graphics and image processing, computer vision and machine vision. It is usually used for feature extraction and feature detection. It aims to detect the edge or discontinuous area with obvious changes in a digital image. In one-dimensional space, similar operations are called step detection)
    2020-04-08 14:50:25下载
    积分:1
  • 696518资源总数
  • 104269会员总数
  • 42今日下载