-
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
-
ofdm_bpsk_fading
OFDM with BPSK in Fading Channel.
- 2009-12-03 08:22:32下载
- 积分:1
-
SmithFrame
说明: Smith原图 可以根据你输入的数据画出相应的Smith图(Smith Original data can be drawn based on your input corresponding Smith chart)
- 2010-04-07 19:28:38下载
- 积分:1
-
main
本程序利用改进的支持向量机理论进行混凝土抗压程度预测,取得了较好的效果(This procedure using improved support vector machine (SVM) theory to carry on the concrete compressive degree prediction, good results have been achieved)
- 2014-11-06 15:28:51下载
- 积分:1
-
DSsystem
直接扩频系统常用函数,有助于对直接扩频系统的算法研究。(functions for Direct spread spectrum system,guod referense for the study for Direct spread spectrum system)
- 2009-05-13 10:38:00下载
- 积分:1
-
sar
sar图像成像仿真(包括rd算法,cs算法,rdm算法,内含sinc插值法距离徙动校正)。(-RD algorithm---- SAR point target simulation results is quite good.)
- 2012-03-13 00:37:58下载
- 积分:1
-
predict
用Durbin递归求预测误差滤波器和它的输出,求解一维信号反卷积(Use Durbin recursive prediction error filter and its output, solving one-dimensional signal deconvolution)
- 2015-06-19 10:38:17下载
- 积分:1
-
LDPC_Codes
LDPC encoder and decoder design in MATLAB
- 2009-03-13 20:34:36下载
- 积分:1
-
netcover
利用matlab求解网络覆盖问题,代码可以直接运行(Network coverage using matlab to solve the problem, the code can be run directly)
- 2010-12-08 12:51:54下载
- 积分:1
-
dvr1
compensation of voltage sags and swells
- 2013-11-21 04:06:12下载
- 积分:1