-
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
-
matlab5
这是个进行问题优化的实验的matlab程序代码,有相关需要的可以下载使用(This is a problem to optimize the experimental procedure of matlab code, have the relevant need can be downloaded using the)
- 2007-10-18 15:54:07下载
- 积分:1
-
4444.rar
the same with privious one
- 2010-10-06 01:25:00下载
- 积分:1
-
Numerical_Methods_in_Engineering_with_MATLAB
Numerical Methods in Engineering with MATLAB
- 2009-05-01 21:12:42下载
- 积分:1
-
Shower
Fuzzy Control System Design using simulink and fuzzy toolbox for nonlinear systems
- 2013-03-29 14:28:01下载
- 积分:1
-
pso
Particle Swarm Optimization
- 2014-01-05 23:18:58下载
- 积分:1
-
kmeans-plusPlus
K-means++算法实现,加强了初始聚类点的选取(careful seeding)(K-means++ algorithm to enhance the selection of the initial clustering points (careful seeding))
- 2010-10-07 11:05:53下载
- 积分:1
-
hht2002
希尔伯特-黄变换的代码,适用于分析非平稳信号(Hilbert-Huang Transform code applicable to the analysis of non-stationary signals)
- 2007-04-24 14:24:07下载
- 积分:1
-
plot_google_map
plot googlemap in matlab
- 2014-11-27 10:38:33下载
- 积分:1
-
NDA_EM_8psk
使用EM算法,估计8PSK调制方式下的信噪比(EM algorithm using the estimated signal to noise ratio under 8PSK modulation)
- 2010-10-22 08:24:52下载
- 积分:1