The following code computes the Number of Pixels Change Rate (NPCR) and Unified Average Changing Intensity (UACI) measures between two encrypted versions of the same image, different only by one pixel.
So the plaintext image was first encrypted.
Then, one pixel of the plaintext was changed, and the image was encrypted again.
The NPCR and UACI measures for these two images are computed.
If the encryption is plaintext dependent, the meaasures should be the ideal ones.
Video:
Reference:
引用格式
Lazaros Moysis (2024). NPCR and UACI measures for image encryption (https://www.mathworks.com/matlabcentral/fileexchange/155712-npcr-and-uaci-measures-for-image-encryption), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2023b
兼容任何版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!