-
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
-
henonbif
henon bifurcations for matlab
- 2013-03-19 04:33:57下载
- 积分:1
-
code-for-kalman
code for kalman filter in matlab
- 2013-03-23 11:30:02下载
- 积分:1
-
reconfig
support for dynamic reconfiguration (including PCI Hotplug and Dynamic Logical Partitioning on RPA platforms).
- 2014-09-08 22:57:10下载
- 积分:1
-
BTfangzhen
BT法仿真,DFT变换,窗函数,功率谱,将加窗之后进行了补零(signal process)
- 2014-10-27 19:51:19下载
- 积分:1
-
zhengheOrbit
将有的数据间隔大于10s的PKI数据与均匀10s的PRD数据整合成一个间隔<=10s的数据文件(Some data interval greater than 10s of the the PKI data with uniform 10s of the PRD data integration into an interval < = 10s data file)
- 2013-03-20 22:53:51下载
- 积分:1
-
Simulink-book
MTLAB经典学习书籍,大家可以看看!!!(MTLAB classical learning books, we can see! ! !)
- 2011-05-20 14:15:34下载
- 积分:1
-
Untitled
nose cancellation releted
- 2012-02-02 16:19:20下载
- 积分:1
-
MRAS
说明: 基于无速度传感器感应电机的自适应识别自制程序(Self-made program of self-adaptive recognition based on speed sensorless induction motor)
- 2020-03-07 03:39:57下载
- 积分:1
-
ex
说明: 基于matlab的自适应分段阈值分割,根据直方图自动寻峰自动分割(Matlab based on adaptive sub-threshold segmentation, according to the histogram peak automatic automatic segmentation)
- 2009-05-06 13:14:44下载
- 积分:1