-
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
-
example_ATC_2lever
使用matlab实现多学科设计优化中目标层解分析法,比较形象的描述了问题的求解。(Matlab realize the use of multidisciplinary design optimization of the target layer solution analysis, comparing the image of a description of the problem solving.)
- 2008-08-22 16:21:20下载
- 积分:1
-
moving_ball
沿曲线运动的小球演示的matlab示例代码,例子为沿sinx曲线运动(matlab sample code of moving along the curve ball demo , the example is curved along the sinx
)
- 2010-05-13 11:24:15下载
- 积分:1
-
matlab-modeling-algorithm(3)
本资料包含了系统的matlab建模用算法(This information includes system modeling with matlab algorithm)
- 2013-08-03 19:47:17下载
- 积分:1
-
svr
说明: svm 的matlab程序,是最基本的svm形式(the sourse of svm,it is the basic styple)
- 2010-04-28 21:28:02下载
- 积分:1
-
Research-and-application-of-ACO
Simulink 蚁群算法仿真研究及其应用(Research and application of ant colony algorithm simulation on simulink
)
- 2013-12-07 19:59:49下载
- 积分:1
-
AtkenStablePoint
艾尔肯特插值,非常不错的一种插值方法哦,大家多多鼓励(艾尔肯特interpolation, a very good interpolation Oh, we encourage more)
- 2009-04-13 10:00:48下载
- 积分:1
-
FFT
对信号进行快速Fourier变换,求谐波波幅值及谐波相角值(Fast Fourier transform of the signal, find the harmonic amplitude and phase angle of the harmonic value)
- 2021-01-11 10:48:49下载
- 积分:1
-
wind
simulink搭建的风速模型,可以模拟风速,仿真使用(Simulink model of wind speed, to simulate wind speed, the simulation using)
- 2020-06-28 20:20:02下载
- 积分:1
-
一阶Keystone变换Keystone
说明: 实现一阶Keystone变换,包含三种方法,分别是DFT+IFFT方法,sinc插值方法和chirp-Z方法(Three algorithms for perform keystone transform, including DFT+IFFT, sinc interpolation and chirp-z transform.)
- 2021-04-19 09:38:51下载
- 积分:1