-
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
-
Modified-Jakes-Channel-Model
Modeling Rayleigh fading channel based on modified Jakes channel model.
- 2014-09-13 08:19:21下载
- 积分:1
-
PskScyB
产生psk调制信号的源程序,并对信号进行成型滤波及上变频(generate PSK modulated signals, and the signals pass the shaping filter and DUC)
- 2013-11-05 11:12:23下载
- 积分:1
-
mosaic
mosaic.rar拼接技术,matlab 源程序,希望有所帮助,(mosaic.rar splicing technology, matlab source code, hope that helps,)
- 2013-12-24 11:39:29下载
- 积分:1
-
dbnunfoldtonn
说明: 一个dbnunfoldtonn函数,用于一个DBN例子中。(a dbnunfoldtonn function for a dbn example.)
- 2020-11-26 09:59:31下载
- 积分:1
-
logrank
Comparison of two survival curves can be done using a statistical hypothesis test called the log rank test. It is used to test the null hypothesis that there is no difference between the population survival curves (i.e. the probability of an event occurring at any time point is the same for each population).
- 2010-02-26 13:17:51下载
- 积分:1
-
NormalizationFromMidPointIrregularP
Normalization from mid points
- 2012-04-24 19:07:57下载
- 积分:1
-
MIT-ECG
利用MIT心电数据库编写的检测ECG信号的程序(use MIT ECG database prepared by the ECG signal detection procedures)
- 2007-04-03 21:11:48下载
- 积分:1
-
M_M_1
matlab仿真MM1。非常好的源代码。(matlab simulation MM1. Very good source code.)
- 2014-11-01 18:33:30下载
- 积分:1
-
Falsafi_Fmincon
fmincon finds a constrained minimum of a function of several variables.
fmincon attempts to solve problems of the form:
min F(X) subject to: A*X <= B, Aeq*X = Beq (linear constraints)
X C(X) <= 0, Ceq(X) = 0 (nonlinear constraints)
LB <= X <= UB (bounds)
- 2019-06-24 18:21:32下载
- 积分:1