-
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
-
kmeans
说明: 数据挖掘中的K均值聚类算法的MATLAB的实现(k means clustering algorithm)
- 2009-07-26 11:17:45下载
- 积分:1
-
EPSD
说明: Power Spectral Density (EPSD) of a vector x
- 2019-07-02 08:53:47下载
- 积分:1
-
initiall
mfile about spot price in matlab
- 2013-09-20 12:12:27下载
- 积分:1
-
model
model maintain the level of water at the pump station
- 2013-11-19 16:37:27下载
- 积分:1
-
Simulation
金属氢化物反应器的计算模拟程序,通过有限容积法实现,包含多个模块(Calculation of the metal hydride reactor simulation program, implemented by a finite volume method, and contains a plurality of modules)
- 2012-11-30 22:34:46下载
- 积分:1
-
Particle-Swarm-Algorithm
粒子群算法,可以自己确定惯性系数的函数式,扩展性良好,可以实现多维(Particle Swarm Algorithm)
- 2017-04-30 16:50:51下载
- 积分:1
-
MATLAB2
说明: 第2讲 MATLAB程序设计第2讲 MATLAB程序设计(Part 2 Part 2 MATLAB programming MATLAB programming)
- 2010-04-08 12:38:24下载
- 积分:1
-
pdtanker
Defined simulation of tanker with PD controller implementation using matlab
- 2011-04-26 14:14:10下载
- 积分:1
-
dfuz
simple code to dufuzzifier in fuzzy logic control
- 2012-04-13 20:04:33下载
- 积分:1