-
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
-
LU_Decom
LU分解,基于MATLAB开发,求上三角函数和下三角函数(LU decomposition, based on the MATLAB development, and lower demand on the trigonometric functions trigonometric functions)
- 2010-12-13 17:34:16下载
- 积分:1
-
dailypay
日常开支记录器,能够满足日常的记账需求,很不错的小软件(Daily expenses recorder, able to meet the daily accounting needs of a very good small software)
- 2010-01-26 15:01:06下载
- 积分:1
-
buck1
this is buck inverter with pwm control
- 2010-02-24 18:30:14下载
- 积分:1
-
CMAbasedRLS
这个matlab代码是实现基于最小二乘算法的常数模算法。较最小均方误差算法,该算法收敛速度较快。(Matlab code to achieve the constant modulus algorithm based on least squares algorithm. Than the minimum mean square error algorithm, the algorithm converges faster.)
- 2012-04-28 10:48:47下载
- 积分:1
-
xiecihuawuxianyanshen
斜磁化无限延伸程序使用很方便,matlab直接导入,直接出结果,图很漂亮(Unlimited extension of deep oblique magnetized magnetic plate body Abnormal Program)
- 2013-10-24 14:08:47下载
- 积分:1
-
vbmatlab
本文说明 vb与matlab连接的教程(This article explains to connect vb and matlab tutorial)
- 2008-03-24 12:46:32下载
- 积分:1
-
matrixju
说明: 可以通过输入刚度或阻尼数组,生成刚度(阻尼)矩阵。(The stiffness (damping) matrix can be generated by input stiffness or damping arrays.)
- 2020-12-03 20:59:26下载
- 积分:1
-
AGC
说明: matlab学习例程,自动增益控制实现例程,方便初学者学习。(Matlab learning routines, automatic gain control routines, easy for beginners to learn.)
- 2020-03-27 17:59:49下载
- 积分:1
-
STREETFIGHTERIVsave
matlab源代码,包括基本编程,数学运算,绘图,数据分析等(matlab source code, including basic programming, mathematics, drawing and data analysis)
- 2011-04-27 14:24:26下载
- 积分:1