-
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
-
DiffEvol
Program in matlab for trainig rbf networks. I hope is good for you.
- 2009-05-09 16:48:32下载
- 积分:1
-
nihehanshuxishuqiujie
作为一个数学模型中建立的拟合函数系数的求解(As the solving of a mathematical model fitting coefficients)
- 2012-06-22 11:52:06下载
- 积分:1
-
Ch8_GA_JSP
用MATLAB软件实现遗传算法解决作业车间调度问题(Genetic algorithms using MATLAB software to solve the job shop scheduling problem)
- 2014-12-13 15:50:37下载
- 积分:1
-
Retinex
说明: 基于单尺度、多尺度、原始的Retinex算法,matlab实现,非常值得研究!在光照增强中有着非常好的应用!(Based on single-scale, multi-scale, the original Retinex algorithm, matlab implementation is worth studying! Increase in light has a very good application!)
- 2021-04-13 14:58:56下载
- 积分:1
-
mobile
Full Telephone Mobile System model in matlab
- 2013-08-22 18:21:13下载
- 积分:1
-
OFDM_64_QAM
Matlab/Simulink OFDM 64 QAM Module
- 2010-10-14 08:55:59下载
- 积分:1
-
guided-filter-code-v1
图像引导滤波,实现平滑滤波,图像细节增强、去雾霾!!!(guided image filtering img_enhancement
img_smoothing img_flash img_feathering)
- 2021-04-06 22:29:02下载
- 积分:1
-
2016.09.08GWO
本代码描述的是有关灰狼算法的研究,这个代码有详细的内容说明与简介,网络上的代码普遍有错误,本人将所有的代码全部实现并改正了错误。供大家学习参考(This code describes the research on the gray wolf algorithm. This code has detailed description and introduction. The code on the network is generally wrong. I have implemented all the code and corrected the error. For everyone to learn reference)
- 2020-11-21 22:19:36下载
- 积分:1
-
Pattern-Classification-ch2-code
duda 模式分类 第二章 上机练习代码(原创,不是网内流传的官方工具箱,比较全,大部分已调试)对应课后题的题号(Pattern Classification 2nd CH2 code practice )
- 2015-03-13 14:26:24下载
- 积分:1