-
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
-
VRP问题源码
说明: 用遗传算法解决多车场多目标带时间窗车辆问题(Using genetic algorithm to solve the vehicle problem of multi depot and multi-objective with time windows)
- 2021-01-24 18:58:42下载
- 积分:1
-
MATLABusingincomputervision
该文章是介绍,MATLAB在对图像进行边缘检测方面的应用的.可以作为这方面研究的参考.(The article is the introduction, MATLAB in image edge detection application of. Research in this area can be used as reference.)
- 2008-03-03 14:49:31下载
- 积分:1
-
MATLABtimedomain
matlab时频分析源代码 很好很强大。希望对您有用(matlab source code for a good time-frequency analysis is very powerful. Hope useful to you)
- 2010-05-21 11:31:53下载
- 积分:1
-
PCB-TPS
针对数控钻孔最优效能的算法求解文献,使用PCB进行解决,能够更高效率地完成对于数控钻孔效率的提高。(CNC drilling optimal performance of the algorithm for solving literature, the use of PCB address, can more efficiently complete CNC drilling efficiency improve.)
- 2012-05-30 22:06:52下载
- 积分:1
-
equal-effect
利用等效拟配法进行飞机的纵向运动的控制参数选取,十分有用(This example is to demonstrate equival effective fitness for pitch and normal load in logitudinal motion)
- 2013-12-24 15:44:35下载
- 积分:1
-
PID
说明: 先进PID控制源程序,需要的可以免费下载(Advanced PID control of source code, need can be downloaded for free)
- 2008-09-02 16:38:41下载
- 积分:1
-
Evaluation_of_Multiple_Input_Multiple_Output(MIMO
Evaluation of mimo system in wireless system
- 2014-01-24 16:35:30下载
- 积分:1
-
差分编码子程序
说明: 差分编码子程序,在调治之前对信号进行差分编码(differential coding subroutine, prior to the modulating signal differential coding)
- 2005-11-16 10:18:45下载
- 积分:1
-
sou
I send matlab codin for OFDM transceiver design
- 2011-09-30 16:38:10下载
- 积分:1