Why is the compressed Image White?
이전 댓글 표시
I working on watermarking scheme using the DWT domain. That's not even the problem, my problem is after decomposing the image into cA, CH, cV, cD, after achieving this i re-decomposed the cA into cA1, cH1, cV1, cD1. I took the cA1 compressed it to jpg using the imwrite function White image is showing. Below is my code:
clear ALL,
clc,
close ALL;
%% Facial image (cover image)
FacialIMGpath = 'C:\Users\foday\Documents\Thesis\originalImage\1-041.png';
host = imread(FacialIMGpath);
host=host(:,:,1);
% [rows, cols]=size(host);
figure (1);
subplot(1,3,1)
imshow(host,[]);
title('Original Image');
%% Adding the Haar wavelet to the host image
[host_LL,host_LH,host_HL,host_HH]=dwt2(host,'haar');
[host_LL1,host_LH1,host_HL1,host_HH1]=dwt2(host_LL,'haar');
% [rows, cols]= size(host_LL);
subplot(1,3,2)
imshow((host_LL1),[]);
title('MULTILEVEL DECOM IMG');
%% JPEG COMPRESSION
imwrite(host_LL1, 'compressedimage.jpg', 'jpg', 'Quality', 90);
JPeg_attack =imread('C:\Users\foday\Documents\Thesis\double watermark\LL\LL multi_level\compressedimage.jpg');
[rows, cols]= size(JPeg_attack);
subplot(1,3,3)
imshow(uint8(JPeg_attack),[]);
Kindly need your assistance
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Watermarking에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!