Percentage of Accuracy for image Steganography
1 view (last 30 days)
Show older comments
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?
0 Comments
Answers (1)
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);
See Also
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!