how to fix this image ?
Afficher commentaires plus anciens
im doing dwt watermarking but my extracted watermark not same with the original. how i fix it ?
%host
rgbimage=imresize(imread('host.jpg'),[512 512]);
figure;imshow(rgbimage);title('original color image');
[h_LL,h_LH,h_HL,h_HH]=dwt2(rgbimage,'haar', 'd');
[h_LL2,h_LH2,h_HL2,h_HH2]=dwt2(h_LL,'haar', 'd');
%watermarked
rgbimage=imread('watermarked.bmp');
figure;imshow(rgbimage);title('Watermarked image');
[wm_LL,wm_LH,wm_HL,wm_HH]=dwt2(rgbimage,'haar', 'd');
[wm_LL2,wm_LH2,wm_HL2,wm_HH2]=dwt2(wm_LL,'haar', 'd');
%watermarking
newwatermark_LL= (wm_LL2-h_LL2)/0.1;
figure;imshow(uint8(newwatermark_LL));title('Extracted watermark');
imwrite(uint8(newwatermark_LL),'EeweWatermark.bmp');

the result

original watermark
Réponses (0)
Catégories
En savoir plus sur Watermarking dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!