登录
首页 » matlab » dct

dct

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

  • 1
    说明:  MATLAB程序,用于dsp编程软件仿真,信号的产生,fft变换(MATLABghdsp)
    2009-12-10 20:56:41下载
    积分:1
  • AIController
    智能控制 簡體字 介紹智能控制基本關念和應用(intelligent control simplified characters introduced intelligent control the basic concepts and application of customs)
    2007-04-21 03:11:40下载
    积分:1
  • FLch6BAeg1
    FLch6BAeg1.m——模糊神经网络解耦MATLAB程序(FLch6BAeg1.m-- Fuzzy Neural Network Decoupling MATLAB program)
    2013-11-13 15:54:18下载
    积分:1
  • yichuansuanfa
    基于遗传算法的区域功能性分区的快速充电站规划研究(Research on the Planning of Electric Vehicle Fast Charging Station Based on Genetic Algorithm)
    2017-05-02 10:19:43下载
    积分:1
  • COS207_MATLAB
    移动无线信道COS207模型MATLAB程序(Mobile radio channel model MATLAB procedures COS207)
    2008-01-15 15:31:45下载
    积分:1
  • contowat
    example process image watermarking
    2010-12-02 15:11:51下载
    积分:1
  • ask
    ask simulink matlab example
    2010-02-17 18:47:57下载
    积分:1
  • OFDM2DiffModMethodsSim
    说明:  ofdm仿真程序,在不同的调制方式下的仿真(OFDM simulation program, in different modulation mode Simulation)
    2008-12-08 09:38:00下载
    积分:1
  • VC-and-Matlab
    MATLAB和VC++结合编程的教学资料(Combination of MATLAB and VC++ programming teaching materials)
    2011-05-19 19:15:04下载
    积分:1
  • IEEE6
    计算IEEE-6节点系统牛顿拉夫逊潮流计算,通用的算法.(Calculation of the IEEE-6 node system Newton Ralph Xun power flow calculation, the general algorithm. )
    2016-05-22 15:49:11下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载