-
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
-
iterationmethodtosolveaequation
迭代法求解一次方程运用迭代法实现一次方程的求解 原创(Iteration method to solve a equation)
- 2010-06-16 10:35:43下载
- 积分:1
-
print2im
print 2 image code in matlab
- 2010-07-20 05:53:50下载
- 积分:1
-
LEACH_1
Matlab codes for Leach
- 2013-04-03 17:10:32下载
- 积分:1
-
QuadrotorSim
A Quadrotor simulation that is performed in MATLAB and SIMULINK
- 2009-03-24 12:05:46下载
- 积分:1
-
20081003
支持向量机方法,用matlab实现,用于分类(Support Vector Machine method, using matlab realize for classification)
- 2008-05-23 15:00:32下载
- 积分:1
-
183176476-Study-Simulation-of-Vehicular-Ad-Hoc-Ne
simulink vanet in matlab
- 2014-02-18 14:08:20下载
- 积分:1
-
Lti_system
连续LTI系统的时域分析连续时间系统的单位冲激响应、单位阶跃响应在线性系统分析中的作用、地位及其MATLAB实现(Lti system for the time domain analysis)
- 2010-12-06 22:38:16下载
- 积分:1
-
PNB1
比例导引弹道仿真,目标方向速度可变,非插值法,xy面投影,xz面投影均遵循比例导引,合成后构成三维图形。(Proportional navigation trajectory simulation, variable speed target direction, non-interpolation method, the xy plane projection, the xz surface projection are follow the proportional navigation guidance, synthetic
After a three-dimensional graphics.)
- 2012-03-21 21:36:51下载
- 积分:1
-
Phase_unrapping_using_Graph_cuts
这个程序是干涉合成孔径雷达利用图割做相位解馋经典程序。(phase unwrapping via graph cuts)
- 2012-08-06 09:52:11下载
- 积分:1