-
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
-
3
说明: * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
(* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
)
- 2008-02-20 16:38:29下载
- 积分:1
-
tsa
MATLAB的时间序列分析相关函数,涵盖对时间序列分析所需要所有重要函数(MATLAB time series analysis of the correlation function, time series analysis covers all the important functions required for)
- 2008-07-31 20:14:41下载
- 积分:1
-
sac-101.5c-linux_x86_64.tar
地震数据格式之间的转换,sac,miniseed,seed,这些数据格式进行转换(Seismic data conversion between formats, sac, miniseed, seed, the data format conversion)
- 2013-10-17 09:57:44下载
- 积分:1
-
M-N-faicurve
绘制钢筋混凝土截面弯矩-轴力-曲率的程序,非常实用,适用用于做截面分析。(A program for drawing the M-N- of reinforced concrete cross section is very practical and suitable for making cross section analysis.)
- 2020-12-13 08:09:15下载
- 积分:1
-
constellation_qam
This m file shows constellation for MQAM.
- 2009-02-25 23:22:05下载
- 积分:1
-
Ant-colony-algorithm-TSP-matlab-
matlab开发的蚁群算法。希望对你有用。(Matlab development ant colony algorithm. Hope to be useful to you.)
- 2012-05-31 22:29:33下载
- 积分:1
-
matlabhelpdocument_7.0
MATLAB帮助文件
MATLaB7.0帮助文件(MATLAB help files MATLaB7.0 Help)
- 2007-05-29 21:03:03下载
- 积分:1
-
ServoDcmotormodel
一种基于MATLAB平台的直流伺服仿真模型,直流电机(Based on MATLAB simulation model of a DC servo, DC)
- 2013-11-12 14:21:47下载
- 积分:1
-
22500794GA-SVM
本程序事实现遗传算法(GA)优化支持向量机(SVM),具有很好的学习价值。(This procedure to achieve something genetic algorithm (GA) optimization support vector machine (SVM), having a good learning value.)
- 2017-03-13 19:40:13下载
- 积分:1