NPCR and UACI measures for image encryption
Version 1.0.2 (2.01 MB) by
Lazaros Moysis
Compute the NPCR and UACI measures for two encrypted images
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:
Cite As
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. Retrieved .
MATLAB Release Compatibility
Created with
R2023b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.