フィルターのクリア

security analysis of image using UACI and NPCR for encrypted image

8 ビュー (過去 30 日間)
faiz
faiz 2016 年 10 月 3 日
コメント済み: yahia 2023 年 4 月 15 日
i am trying to find the UACI value for two encrypted images, having one pixel value changed in original plain image.i get value greater than 0.4, on the other hand in most of the papers i read having 0.334 or 0.34 maximum value for UACI. CAN ANYONE EXPLAIN THE UACI and NPCR ?what is the maximum achievable value of UACI?
npcr_score = sum( double( img_a(:) ~= img_b(:) ) ) / num_of_pix;
uaci_score = sum( abs( img_a(:) - img_b(:) ) ) / num_of_pix / largest_allowed_val;
i am using the above matlab code for finding NPCR and UACI. img_a and img_b both are encrypted image having one pixel value changed in original image.

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 10 月 3 日
uaci_score = sum( abs( double(img_a(:)) - double(img_b(:)) ) ) / num_of_pix / largest_allowed_val;
  3 件のコメント
yahia
yahia 2023 年 4 月 15 日
How to calculate UACI and NPCR for sbox aes

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by