-
dct
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 )
- 2010-06-13 18:43:39下载
- 积分:1
-
matlab-a-
FSK调制解调MATLAB源代码,很不错,值得看看(FSK modulation and demodulation MATLAB source code, very good, worth a look)
- 2013-11-15 16:31:41下载
- 积分:1
-
clfxxmx
利用SIMULINK搭建考虑轮胎非线性后的二自由度车辆整车模型,及其相关m文件。(Using SIMULINK to build vehicles, vehicle model considering the tire nonlinear two degrees of freedom, m files.)
- 2012-08-15 11:46:46下载
- 积分:1
-
APF
基于simulink的APF仿真,纯理论仿真,用电池来代替电容,方便学习。(Based on the APF simulink simulation, purely theoretical simulation, using capacitors instead of batteries, easy to learn.)
- 2013-12-01 16:33:16下载
- 积分:1
-
constellation_qam
there is a matlab code about qam in the communication.
- 2010-07-15 23:20:13下载
- 积分:1
-
mm
说明: 用于最小二乘法进行曲线拟合的MATLAB源代码(Curve fitting)
- 2010-09-28 11:36:41下载
- 积分:1
-
alamouti
说明: STBC,经典Alamouti 2X2 空时编码(Alamouti 2X2 STBC)
- 2011-03-04 10:37:07下载
- 积分:1
-
manage
matlab图像处理基础2013修改版 中国科学技术大学MATLAB课程课件(matlab image processing based on a modified version of 2013)
- 2013-10-02 11:44:46下载
- 积分:1
-
uiyk
comparison with the genetic algorithm, the advantages of PSO is simple
- 2010-12-22 06:36:02下载
- 积分:1
-
MATLAB-language
《MATLAB语言常用算法程序集》一书的源程序,好不容易找到的,奉献给大家!(Book " MATLAB language commonly used algorithm assembly source, hard to find, and dedicated to everyone!)
- 2012-08-30 22:35:49下载
- 积分:1