how I can measure the robustness of watermark?
1 次查看(过去 30 天)
显示 更早的评论
I am working on one of the watermarking algorithm, I wanna measure the robustness of the watermark Image the PNSR used for original Image , I could not use it for watermark because it is double Image , the measure should done between the Watermark and Extracted Watermark, all of images are unit8 class any suggestion please?
4 个评论
Image Analyst
2017-12-10
psnr() is a built-in function since R2014a. Why are you overwriting it with your own?
ALso, if you embedded a color watermark, and you're extracting a grayscale version of it, then your extraction method is not right. You should be able to extract the very same image you embedded.
回答(1 个)
Walter Roberson
2017-12-10
double() the image that is uint8 before calculating the PSNR against the double() array.
2 个评论
Subhadeep Koley
2018-1-20
编辑:Walter Roberson
2018-1-20
[row col]=size(original_wm);
extracted_wm=imresize(extracted_wm,[row,col]);
after executing this piece of code psnr() will work fine.
Apart from psnr you can also test structural symmetry between two images by calling
ssimval=ssim(extracted,original);
Hope this helps :)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!