-
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
-
controlExercise
Some control exercises with matlab
- 2010-08-01 14:49:29下载
- 积分:1
-
LSB_test
在bmp图像中隐藏另一图像,希望对大家有用!(bmp image in another hidden images, useful for all!)
- 2006-06-02 16:54:29下载
- 积分:1
-
求解单自由度振动 可以直接输入参数计算 简单方便
说明: 求解单自由度振动 可以直接输入参数计算 简单方便(It is simple and convenient to input parameters directly for solving single degree of freedom vibration)
- 2020-05-08 14:50:39下载
- 积分:1
-
TimeZoneEditorSrc
In mid-2003, someone in the Lounge asked for a list of time zones. I said that I had one, but the data was in a CodeBase/FoxBase file. Chris Maunder asked if I could retrieve that data and submit it to CodeProject. After procrastinating a few weeks, I decided to go ahead and not only extract the data, but to write a program to edit that data.
- 2007-10-16 09:33:47下载
- 积分:1
-
des
This is the presentation explaining implementation of DES algorithm.
- 2011-02-06 14:58:14下载
- 积分:1
-
interp2_use
matlab中interp2函数二维曲面插值(matlab function of two-dimensional surface interpolation in interp2)
- 2013-07-31 15:58:16下载
- 积分:1
-
knnsearch
一个小而有效的程序来执行的K -近邻搜索算法,此算法利用JIT 理论加速循环,比向量化有效解决了大量数据的精度问题。甚至比kd-tree效果要佳(A small and effective procedures to implement the K- nearest neighbor search algorithm, this algorithm uses JIT acceleration cycle theory, than to solve a lot of data to quantify the accuracy of the problem. Even more than the kd-tree effect has to be good)
- 2011-04-28 22:44:08下载
- 积分:1
-
AlejandroPAll
使用matlab进行gif图片的生成,可画函数图像以及不稳定流程,3种模式分别对应3种算法(Use matlab to generate a gif image, the image can be painted functions and unstable process, three modes corresponding to the three algorithms)
- 2015-07-19 00:16:29下载
- 积分:1
-
McCabeThiele
file for matlab analysis of binary mixture.
- 2010-12-03 17:01:13下载
- 积分:1