登录
首页 » matlab » dct

dct

于 2010-06-13 发布 文件大小:1KB
0 225
下载积分: 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 个回复

  • target_image_gen
    target image program in zip file
    2009-02-16 17:18:10下载
    积分:1
  • 3
    说明:  simulating a 3 phase voltage with various frequencies with matrix converter
    2010-10-18 17:40:38下载
    积分:1
  • Matlab-Monte_Carlo
    基于Matlab语言的Monte_Carlo入门教程.用于初学者学习。有一定的指导意义。(Based on Matlab language Monte_Carlo Tutorial. For beginners. Have some significance.)
    2010-10-23 02:42:58下载
    积分:1
  • BP
    说明:  bp是MATLAB应用中的预测算法,含有例题(BP and MATLAB)
    2009-12-12 17:04:34下载
    积分:1
  • signal-analysis
    基于matlab的连续时间信号傅里叶级数分析已经matlab的实现(Matlab-based Fourier series of continuous-time signal analysis has matlab realization)
    2014-08-21 11:05:32下载
    积分:1
  • Program-based-on-unit-commitment
    Program based on unit commitment of Power System
    2013-12-10 05:35:31下载
    积分:1
  • MPalgorithm
    采用鱼群MP算法来对单信源AFSA波达方向估计,可以得到很好的结果(Adopt shoals MP algorithm to single source AFSA doa estimates, you can get a good result )
    2010-12-28 21:11:02下载
    积分:1
  • xianxingyuce
    阵列信号,16阵元,3信源的线阵条件下的线性预测算法(Array signal, 16 array, 3 sources of linear conditions, the linear prediction algorithm)
    2010-05-29 09:31:10下载
    积分:1
  • MatlabPPT
    MATLAB 讲义,对MATLAB高级应用进行深入的剖析,如果您在使用MATLAB时遇到技术问题,这个讲义经对您有用。(MATLAB lectures, advanced applications of MATLAB in-depth analysis, if you are using MATLAB encounter technical problems, this lecture by useful to you.)
    2009-10-15 22:05:20下载
    积分:1
  • Boltzman
    说明:  用matlab实现的神经网络Hopfield网络算法,初步编写,欢迎指正(nertural network)
    2010-03-30 11:01:07下载
    积分:1
  • 696518资源总数
  • 105678会员总数
  • 22今日下载