获取代码方式1:
完整代码已上传我的资源:【图像隐写】基于matlab FFT数字水印嵌入【含Matlab源码 1670期】
获取代码方式2:
通过订阅紫极神光博客付费专栏,凭支付凭证,私信博主,可获得此代码。
备注:
订阅紫极神光博客付费专栏,可免费获得1份代码(有效期为订阅日起,三天内有效);
clc clear all close all %Reading Original Image [FileName,FilePath] = uigetfile('*.*'); Image = imread([FilePath,FileName]); if size(image,3) == 1 Image = rgb2gray (Image); end [ImageRows,ImageColoumns] = size(Image); %Reading Logo [FileName,FilePath] = uigetfile('*.*'); Logo = imread([FilePath,FileName]); if size(Logo,3) == 1 Logo = rgb2gray(Logo); end Logo = im2bw(Logo,0.7); [LogoRows,LogoColoumns] = size(Logo); figure, subplot(2,3,1),imshow(Image); title('Original Image') subplot(2,3,4),imshow(Logo); title('Logo') %Water Mark Logo, lines 17 & 18 also can be used for Logo extraction. ImageFFT = fft2(Image); ImageFFTshift = fftshift(ImageFFT); ImageFFTshift2 = ImageFFTshift;%Is used for inserting the Logo far from center of FFT. %Inserting the Logo to center of the FFT shifted Image. ImageFFTshift(ImageRows / 2:(ImageRows / 2+ LogoRows - 1), ...
1 matlab版本
2014a
2 参考文献
[1]韩纪庆,张磊,郑铁然.语音信号处理(第3版)[M].清华大学出版社,2019.
[2]柳若边.深度学习:语音识别技术实践[M].清华大学出版社,2019.
[3]宋俊辉,鲁骏.彩色图像数字水印嵌入和提取模型研究——基于DWT和DCT[J].现代商贸工业. 2011,23(17)