Percentage of Accuracy for image Steganography

1 view (last 30 days)
Hello, I am new user of Matlab. I am doing the project about image steganography. I want to get the percentage of accuracy betweeon two images which is original and stego image. May I get some help from you?

Answers (1)

Image Analyst
Image Analyst on 1 Jan 2021
How about if you just find out how many are equal?
For two gray scale images
theSame = nnz(grayImage1 == grayImage2)
pct = 100 * theSame / numel(grayImage1);
For a color image
theSame = all(rgbImage1 == rgbImage2, 3)
pct = 100 * nnz(theSame) / numel(grayImage1);
  1 Comment
Ei Sandar Tun
Ei Sandar Tun on 3 Jan 2021
SIr, rgbImage1 or grayImage1 mens original image and grayImage2 or rgbImage2 is about stego mage?

Sign in to comment.

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!