-
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
-
linsweep35M
利用matlab产生线性调频信号,主要用于雷达信号的产生。(matlab create Radar signal waveform)
- 2009-06-30 21:28:02下载
- 积分:1
-
ML610Q495demo
OKI的ML610Q495芯片例程demo(OKI ML610Q495 chip routines demo)
- 2013-12-26 09:24:08下载
- 积分:1
-
untitled1
SMC for Boost Converter
- 2009-06-08 17:06:24下载
- 积分:1
-
chaoliuchengxu
利用MATALB编写的潮流程序,先是编写总体框架,然后每一部分作为一个子程序。(MATALB prepared using the flow program, first write the overall framework, and then each part as a subroutine.)
- 2013-09-17 11:26:08下载
- 积分:1
-
12334
声子晶体点线缺陷的程序,matlab编程仿真,2012以上版本(Phononic crystal point and line defects program, matlab programming simulation, version 2012.)
- 2014-12-09 11:08:07下载
- 积分:1
-
dsezjc
speex-1,2rc2,tar,gz linphone依赖库源码包(Rc2 speex- 1, 2, tar, gz linphone rely on library source code package)
- 2017-03-13 18:37:52下载
- 积分:1
-
DFIG-master
说明: 含有风力发电的微电网系统仿真,通过控制策略进行功率合理分配(Research on Grid-connected microgrid and its control strategy simulation of microgrid system with wind power generation and reasonable power distribution through control strategy)
- 2019-07-11 16:48:28下载
- 积分:1
-
chaotic_neuranetwork
这是一个混沌神经网络的matlab程序,可用于实现基于混沌神经网络的预测和建模。(This is a chaotic neural network matlab program for chaotic neural network-based forecasting and modeling)
- 2010-11-19 20:27:31下载
- 积分:1
-
chaotic-spreading-sequences
说明: 混沌扩频序列的生成,用于混沌算法,初始种群生成(The generation of chaotic spreading sequences for the chaotic algorithms, initial population generation)
- 2011-03-16 16:48:59下载
- 积分:1