登录
首页 » matlab » dct

dct

于 2010-06-13 发布 文件大小:1KB
0 320
下载积分: 1 下载次数: 5

代码说明:

  M=512 原图像长度 N=64 K=8 I=zeros(M,M) J=zeros(N,N) BLOCK=zeros(K,K) 显示原图像 I=imread( f:ceshiyuanshitu.bmp ) figure imshow(I) xlabel( 原始图像 ) 显示水印图像 J=imread( f:ceshilogistic_nuaa64.bmp ) figure imshow(J) xlabel( 水印图像 ) 嵌入水印 tem=1 for p=1:N for q=1:N x=(p-1)*K+1 y=(q-1)*K+1 BLOCK=I(x:x+K-1,y:y+K-1) BLOCK=dct2(BLOCK) if J(p,q)==0 a=-1 else a=1 end BLOCK(2,1)=BLOCK(2,1)*(1+a*0.01) BLOCK=idct2(BLOCK) I(x:x+K-1,y:y+K-1)=BLOCK end end 显示嵌入水印后的图像 figure imshow(I) xlabel( 嵌入水印后的图像 ) imwrite(I, f:ceshiembedded.bmp )

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

发表评论

0 个回复

  • Gearbox-kinematic-modeling
    gearing box kinematic model
    2012-04-04 14:21:44下载
    积分:1
  • matlab
    matlab常用命令查询,方便新手入门matlab(matlab command queries used to facilitate the Getting Started matlab)
    2010-05-18 14:20:55下载
    积分:1
  • mdfsfd
    matlab源码(Matlab source Matlab source Matlab FO)
    2007-03-11 02:37:22下载
    积分:1
  • PulseShaping
    shapping the pulse file
    2012-09-27 19:38:13下载
    积分:1
  • DIJKSTRA
    最 短 路 dijkstra 算 法 mex 程 序,图论中的最短路径!(Dijkstra shortest path algorithm mex procedures, graph theory of the shortest path!)
    2007-07-27 16:01:31下载
    积分:1
  • Matlab-GOOD
    Matlab好课程,内容比较详细,容易懂,适合查询用(Matlab a good course, more detailed content, easy to understand, for queries with)
    2011-04-20 15:56:05下载
    积分:1
  • rs
    说明:  rs码基于matlab编码,c语言译码,已验证,为正确代码(rs encoding with matlab,and decoding with c)
    2011-12-14 16:19:29下载
    积分:1
  • matlab__chinese
    非常好一个matlab中文教程,找了好久的!(A very good Chinese matlab tutorial for a long time to find it!)
    2010-09-11 15:42:53下载
    积分:1
  • meanshift
    meanshift算法的matlab程序,用于图像分割 (matlab program meanshift algorithm for image segmentation)
    2009-04-12 21:31:18下载
    积分:1
  • EEG-data-analysis-for-BCI
    document for code of brain compture interface with EEG Signal
    2011-01-04 22:58:44下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载