登录
首页 » matlab » dct

dct

于 2010-06-13 发布 文件大小:1KB
0 90
下载积分: 1 下载次数: 5

代码说明:

  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 )

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Experimental_Course_MATLAB_new
    MATLAB新版实验教程Experimental Course MATLAB new(MATLAB new experimental tutorial Experimental Course MATLAB new)
    2010-08-08 21:16:35下载
    积分:1
  • MLBasic
    有效利用music算法对波达方向角度进行估计运算(music for doa)
    2015-01-08 15:51:02下载
    积分:1
  • IO
    说明:  控制安捷伦矢量信号源,在本地计算机上产生一个信号然后传入信号源,本代码含若干练习性的源代码,结合自己大量的调试经验,在signal1.m中对初学者甚至经常使用的用户极易犯得错误进行了详细标注,(Matlab generate data in the waveform file, downloaded to the Agilent signal sources. By reading it, you will get a lot.)
    2021-01-26 22:38:41下载
    积分:1
  • code
    利用PCA提取人脸特征,。利用PCA技术降低维数去除了原始原始数据之间的关联性。(Using PCA face feature extraction,. Using PCA technology to reduce dimension in addition to the original connection between the original data.)
    2012-11-05 21:52:02下载
    积分:1
  • bemlabecom
    Boundary element method function [index,g,h,a,unb,x,u,un,uin]=bemlabecom(n,c,index,in,cin) [index,g,h,a,unb,x,u,un,uin]=bemlabecom(16,[0 0 0.25 0 0.5 0 0.75 0 1 0 1 0.25 1 0.5 1 0.75 1 1 0.75 1 0.5 1 0.25 1 0 1 0 0.75 0 0.5 0 0.25 0 0],[1 0 1 0 1 0 1 0 0 200 0 200 0 200 0 200 1 0 1 0 1 0 1 0 0 100 0 100 0 100 0 100],9,[0.25 0.25 0.50 0.25 0.75 0.25 0.25 0.50 0.50 0.50 0.75 0.50 0.25 0.75 0.50 0.75 0.75 0.75]) in bemlabecom2 we change a & unb to : a1 a2,unb1 unb2 n=number of nodes=number of element=number of point c=matrix that determine the coordinate of point m=coordinate of nodes in global coordinates index: determine u or un for boundary nodes in:number of internal nodes cin: coordinate of internal nodes
    2012-01-29 03:47:10下载
    积分:1
  • Medium-Access-Control
    Multiple access methods for wireless communication
    2014-08-22 17:20:32下载
    积分:1
  • imagescn
    Imagescn plot two or more imagesc into the same axes. Deeper layers are visible, were higher layers have the value NaN. This is helpful e.g. to show measurement (=foreground) results "above" a map (=background), to separate NaN values within a 2D matrix from the lowest value (standard image shows the same color at NaN as it does for the lowest value). The number of layers is only limited by memory space :-).(Piled images Imagescn plot two or more imagesc into the same axes. Deeper layers are visible, were higher layers have the value NaN. This is helpful e.g. to show measurement (=foreground) results "above" a map (=background), to separate NaN values within a 2D matrix from the lowest value (standard image shows the same color at NaN as it does for the lowest value). The number of layers is only limited by memory space :-).)
    2011-10-08 19:59:44下载
    积分:1
  • second
    包括卡尔曼滤波主文件和函数文件,希望大家一起学习。(Including the Kalman filter master file and function file)
    2014-11-19 21:12:30下载
    积分:1
  • 3
    输入圆的半径求周长和面积。程序由三个函数组成:主函数进行输入输出和函数调用,perimeter函数求周长,area函数求面积。(Enter the radius of the circle circumference and area requirements. Program consists of three functions: the main input and output functions and function calls, perimeter function evaluation perimeter, area function for the area.)
    2013-12-25 20:53:57下载
    积分:1
  • No_Speedsensor_vc
    基于无速度传感器的异步电机调速系统,运用电流来合成磁链,控制方法是转子磁链定向。采用电流滞环控制,电网电压380V,转矩最大达30N.m。波形效果不错。(Based on speed sensorless induction motor speed control system, using current flux synthesis method for controlling the rotor flux orientation. Use current hysteresis control, grid voltage 380V, maximum torque of 30N.m. Waveform good results.)
    2015-09-28 17:53:19下载
    积分:1
  • 696518资源总数
  • 104347会员总数
  • 12今日下载