필터 지우기
필터 지우기

how I can measure the robustness of watermark?

조회 수: 1 (최근 30일)
Eliza
Eliza 2017년 12월 10일
편집: Walter Roberson 2018년 1월 20일
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
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.
Eliza
Eliza 2017년 12월 12일
I used it but if it gives me negative value what does it mean?

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2017년 12월 10일
double() the image that is uint8 before calculating the PSNR against the double() array.
  댓글 수: 2
Eliza
Eliza 2017년 12월 10일
the error in the dimension between the Original WM and Extracted WM
Subhadeep Koley
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!

Translated by