-
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
-
matlab2
matlab program to practice
- 2010-11-10 11:05:00下载
- 积分:1
-
PROGRAM
说明: 最大熵原理 谱估计 MATLAB开发环境
可用于图像处理 图像分块(MESE matlab )
- 2010-04-18 10:38:35下载
- 积分:1
-
Kalman-filter-algorithm
卡尔曼滤波算法(内含详细推导),可供读者自行学习,经本人测试,代码无误(Kalman filter algorithm (including the detailed derivation))
- 2013-10-21 19:55:05下载
- 积分:1
-
MATLAB-qr
用MATLAB实现了QR二维码的编码及解码,可显示二维码并读出二维码信息(Using MATLAB to achieve a two-dimensional code QR coding and decoding, reading out the two-dimensional code information)
- 2015-11-14 21:18:20下载
- 积分:1
-
zhishu
指数平滑法是对时间序列进行预测常用的方法之一,其理论基础是趋势外延,即未来一定时期内事物在数量上的演变特征不脱离过去的发展趋势,预测值是以前所有观测值的加权和,且对不同的数据给予不同的权数,越近期数据给予越大的权数,越远期的数据给予越小的权数。(Exponential smoothing method is commonly used to predict the time series one of the ways, the theoretical basis of the trend of the extension, that is, a certain period of time what the next evolution in the number of characteristics are not out of the development trend of the past to predict the value of all previous observations is the weighted and, on different data and different weights given to more recent data to give greater weights, the more long-term data to give the smaller weights.)
- 2009-06-01 12:32:13下载
- 积分:1
-
invertersvpwm
inverter space vector pwm
- 2010-03-05 12:38:35下载
- 积分:1
-
l1magic-1.1
说明: 基于matlab的稀疏表示中L1范数计算源码(the codes for L1 in sparsty representation with matlab)
- 2009-08-11 09:22:54下载
- 积分:1
-
threepower_harmonicfilter
交流电力系统中常见的无源滤波器模型,可以去除大部分谐波(Passive filter model in AC power system)
- 2020-09-20 14:27:53下载
- 积分:1
-
ar_xfc
高级数字信号处理中用burg法进行的谱估计,共享一下,希望有所帮助(Advanced digital signal processing using burg method of spectrum estimation, sharing, hope I help)
- 2010-06-21 20:50:19下载
- 积分:1