-
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
-
Vsupply
interconnect system parameter variation
- 2013-08-21 04:11:31下载
- 积分:1
-
mimoqam
QAM MIMO simulation using MATLAB
- 2014-02-04 00:29:59下载
- 积分:1
-
timedelay
时延估计源代码,互相关函数和自适应滤波法,可用于声源定位(TDE source code, cross-correlation function and adaptive filtering)
- 2020-08-14 15:48:31下载
- 积分:1
-
phaseEsimate
适用于QAM、PSK信号的相位估计算法。用于纠正光纤通信中的相位噪声(phase noise estimation)
- 2020-11-09 17:09:47下载
- 积分:1
-
squarepot
Compute resonances of a one-dimensional piecewise-constant potential.
- 2009-11-03 14:06:41下载
- 积分:1
-
2D-bar-matlabPansys
平面桁架有限元计算程序,已知约束与在和条件,求解节点支反力(The plane truss finite element calculation program
)
- 2014-12-26 12:37:29下载
- 积分:1
-
ROOT_MUSIC_DOA
简洁但是经典的Root Music DOA 算法,是用多项式求解的方法来寻找DOA(Direction of Arrival )(simple but classic Root Music DOA algorithm, is the polynomial method to find DOA (Direction of Arrival))
- 2007-03-30 00:14:54下载
- 积分:1
-
FMINSEARCHBND
Fminsearch does not admit bound constraints.
However simple transformation methods exist to
convert a bound constrained problem into an
unconstrained problem.
- 2012-09-20 17:42:15下载
- 积分:1
-
pso-programs
pso (PRACTICAL SWARM) toolbox
- 2013-04-15 05:08:51下载
- 积分:1