-
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
-
leida
将一张图片由直角坐标转换为极坐标,并且分别显示图片(the trans of coordination)
- 2012-03-24 19:12:50下载
- 积分:1
-
Measures-Of-Length
LEARN ABOUT MEASURES OF LENTGT
- 2014-08-21 15:27:47下载
- 积分:1
-
DGnetwork
微电源并网,实现分布式电源构成的微电网,用于微电网仿真(Micro power grid, the realization of distributed power of micro grid,For micro power grid simulation)
- 2021-04-22 17:38:48下载
- 积分:1
-
signalestimation
Signal estimation using matlab
- 2010-03-12 16:29:53下载
- 积分:1
-
165
research paper on the development of mppt on varies artificial intelli algorithms
- 2013-03-08 22:29:54下载
- 积分:1
-
cv_fenxi1
matlab 代码,主要用于计算一数据矩阵的标准差,方差,变异系数,话三维曲面图(matlab code, data matrix used to calculate a standard deviation, variance, coefficient of variation, then D surface chart)
- 2013-10-31 19:58:00下载
- 积分:1
-
jalase-22
Nonlinear Homework Problem - Shahrood university- session 22
- 2015-12-26 18:42:22下载
- 积分:1
-
facerecgnize
模式识别课程作业,pca和kpca,以及一个人脸可。其中kpca的核函数是多项式。(Pattern Recognition course assignments, pca and kpca, and a person can face. Where the kernel function is polynomial kpca.)
- 2010-07-13 16:02:47下载
- 积分:1
-
car_position
基于matlab的车牌定位、字符分割和字符识别(car population in matlab)
- 2009-07-10 21:32:59下载
- 积分:1