Hiding image using QR factorization

3 次查看(过去 30 天)
i have a problem in extracting secret image in this code
clear all;
coverim = imread('house.tif'); % color image
coverim1 = coverim(:,:,3);
alpha = 0.2;
coverim1 = imresize(coverim,[256 256]);
secim = imread('lena.png');
secim1 = secim(:,:,1);
secim1 = imresize(secim1,[256 256]);
bc = coverim1(:,:,3);
[qc,rc] = qr(double(bc));
[qs,rs] = qr(double(secim1));
newr = rc+(alpha*rs);
b = qc*newr;
simage2 = cat (3, double(coverim1(:,:,1)),double( coverim1(:,:,2)),b);
simage2 = uint8(simage2);
figure(1), imshow ((simage2));
bn = simage2(:,:,3);
[qn , rn] = qr(double(bn));
rnn = (rn-rc)/alpha;
secimage = qs*rnn;
figure(2), imshow(uint8((secimage)));

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Neuroimaging 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by