-
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
-
elam
基于matlab的elam神经网络模型源程序,反馈性神经网络,输出不仅与输入有关还与以前的输出有关。(Matlab neural network based model of elam source, feedback neural network, the output and input not only related with the previous output.)
- 2010-09-13 01:57:01下载
- 积分:1
-
kNearestNeighbors
K nearest neighbor search for matlab
- 2013-04-05 06:39:50下载
- 积分:1
-
新建文件夹
基于MATLAB的并网逆变器双闭环控制策略仿真(Double closed loop control)
- 2018-10-15 21:21:39下载
- 积分:1
-
AntClony-Matlab
蚁群算法在matlab中的模拟,基本调试成功,请高手指点~(Ant colony algorithm in matlab simulation, basic debugging success, experts urged to)
- 2012-12-28 18:18:52下载
- 积分:1
-
HMS
Enter an integer, output Hours, minutes and seconds
Enter an integer, output Hours, minutes and seconds(Enter an integer, output Hours, minutes and seconds)
- 2014-10-09 19:42:41下载
- 积分:1
-
K-means
初略介绍k-means,初学者可通过此文档认识什么是k-means算法(Slightly introduced at the beginning of k- means, beginners can pass this document to know what is k- means algorithm)
- 2014-12-01 09:09:18下载
- 积分:1
-
BM-8300PSTA2EMU-5.8.199Pbin
AN IMPORTANT class of theoretical and practical
problems in communication and control is of a statistical nature.
- 2015-03-15 00:14:12下载
- 积分:1
-
vibra_yuchuli
MATLAB实现振动信号预处理:最小二乘法消除多项式趋势项和五点滑动平均法平滑处理(MATLAB realize vibration signal preprocessing: least squares polynomial trend items and eliminate a five-point moving average smoothing)
- 2015-01-26 11:31:07下载
- 积分:1
-
orientation
estimate the orientation of fingerprint
- 2007-09-12 14:16:46下载
- 积分:1