【图像解密】基于双随机相位编码和压缩感应的图像加密附matlab代码

✅作者简介:热爱科研的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.

⛳️ 代码获取关注我

❤️部分理论引用网络文献,若有侵权联系博主删除

❤️ 关注我领取海量matlab电子书和数学建模资料

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

matlab科研助手

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值