登录
首页 » matlab » dct

dct

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

  • Hiding-image-with-Gaussian
    Image Encryption and Decryption
    2014-08-29 13:12:24下载
    积分:1
  • code
    主成分分析的matlab程序 function eof程序(eof program)
    2010-12-02 12:51:38下载
    积分:1
  • wave
    matlab三角级数法合成人工地震波算例(matlab triangular series synthesis examples of artificial seismic waves)
    2011-05-30 11:06:24下载
    积分:1
  • mcpm_platsmp
    Code to handle secondary CPU bringup and hotplug for the cluster power API.
    2015-06-17 14:40:26下载
    积分:1
  • equalization
    使用matlab的基本算法来实现equalization(均衡)的计算 而并不是用eq来得到均衡结果(The basic algorithm using matlab to achieve equalization (EQ) is calculated using eq and not to get a balanced result)
    2021-03-21 15:49:17下载
    积分:1
  • second
    正弦信号的谱分析,以及报告!仅供参考望大家给出宝贵意见!(Sinusoidal signal spectral analysis, and reporting! Reference only hope we are given valuable advice!)
    2010-07-06 21:20:59下载
    积分:1
  • monituihuosuanfa
    基于matlab 的模拟退火算法源程序,经典算例,有PDF说明。(Based on the simulated annealing algorithm matlab source, the classic example, a PDF note.)
    2009-05-12 09:53:16下载
    积分:1
  • 6ghtg
    说明:  MATLAB实用教程-电子教案,很好的学习工具,因该随你们有用(MATLAB Practical Guide- E-teaching, good learning tools, because of the useful as you)
    2008-10-14 17:32:16下载
    积分:1
  • snake
    贪食蛇小游戏的matlab代码,上下左右键控制,下载直接运行即可使用。(Matlab code Snake game, up and down keys to control, you can use downloaded directly run.)
    2013-07-19 20:08:38下载
    积分:1
  • xianluma
    该程序实现了几种线路码的编译过程。包括编码和译码的过程,绘制有关的性能曲线、频谱图和波形图,还有纠错的能力。(the realization of several lines of code compile process. Including the coding and decoding process, drawing on the performance curve, spectrum and waveform charts along with error-correcting capabilities.)
    2007-05-23 14:24:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载