✅作者简介:热爱科研的Matlab仿真开发者,修心和技术同步精进,matlab项目合作可私信。
🍎个人主页:Matlab科研工作室
🍊个人信条:格物致知。
更多Matlab仿真内容点击👇
⛄ 内容介绍
A secure optical digital image encryption scheme with authentication capability is proposed using double random-phase encoding (DRPE) and compressed sensing (CS). Phase information of the plaintext image is obtained using DRPE and quantized to generate authentication information. Simultaneously, the plaintext image is compressed by CS and its measurements are quantized using the sigmoid map. Then the ciphertext image is obtained by permutation and diffusion after authentication information is embedded in quantified measurements. At receiving end, the authentication information is first extracted by inverse permutation and diffusion,
and then the authentication image is obtained by inverse DRPE. Finally, the ciphertext image can be blindly authenticated using a nonlinear cross-correlation method with authentication image and reconstructed image. Experimental results demonstrate the effectiveness of our proposed scheme.
⛄ 部分代码
clc; close all; clear;
addpath(genpath('utils/'));
addpath(genpath('src/'));
addpath(genpath('images/'));
%% Loop
posibility = 0;% Ratio of tamper
g = 0; % Ratio of noisy param
rate_crop = 0; % Ratio of cropping
p = 7 / 8; % Ratio of sampling
method = 'omp';% If method is set to `cvx`, then please wati for a long time.
for i = 1 : 7
disp('---------------------------------');
p = i / 8;
exp_main();
ans_name = ['ans/', method, '_sampling-', num2str(p), '_noise-', num2str(g),...
'_tamper-', num2str(posibility), '_crop-',num2str(rate_crop), '.mat'];
save(ans_name);
disp(['Save answer to ', ans_name]);
end
%% Visualization
plot_figs(method, p, g, posibility, rate_crop);
plot_pce_psnr();
% plot_key_sensitive();
% Im_entropy();
⛄ 运行结果
⛄ 参考文献
Zhou K, Fan J, Fan H, et al. Secure image encryption scheme using double random-phase encoding and compressed sensing[J]. Optics & Laser Technology, 2020, 121: 105769.