-
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
-
entropy
使用mantlab,计算图像的一阶熵和二阶熵(computer the first-order entropy and the second-order entropy)
- 2010-11-30 09:32:16下载
- 积分:1
-
bpskawgnRayleigh
BPSK信号在高斯和瑞利信道下的误码率曲线用matlab实现(Modulation and demodulation)
- 2020-12-07 15:49:21下载
- 积分:1
-
matlab6.5Figurepatternprocesssourceprogram
matlab6.5 Figure pattern process source program, it s better to have the books to read consulting together (matlab6.5 Figure pattern p source process rogram. it's better to have the books to read consulting t ogether)
- 2007-05-06 16:23:00下载
- 积分:1
-
encdecm
This code simulates Distance Vector Routing protocol used for routing in communication networks
- 2011-02-01 21:41:39下载
- 积分:1
-
nmi
very useful try this
- 2013-01-12 21:09:00下载
- 积分:1
-
homography_2
3x3 homography matrix
- 2013-02-13 16:49:01下载
- 积分:1
-
star
Star, rhombus in neatbeans.
- 2014-11-14 12:06:53下载
- 积分:1
-
电气的同学常用的牛顿潮流法的计算过程及其算法原理
电气的同学常用的牛顿潮流法的计算过程及其算法原理(Newtonian trend method)
- 2020-06-25 01:20:02下载
- 积分:1
-
cycle_test_algrithm
lDPC校验矩阵的环检测。包括4环检测算法,6环检测算法及8环检测算法。还包括一个准循环LDPC奇偶校验矩阵的生成算法。(this algrithm can search cycles in LDPC parity check matrix。It contain cycle-4 cycle-6 cycle-8 test algrithm.It also contains a algrithm for generate the LDPC quasi-cyclic parity check matrix )
- 2010-03-11 13:46:50下载
- 积分:1