NPCR and UACI measures for image encryption

Compute the NPCR and UACI measures for two encrypted images
107 Downloads
Updated 10 Jan 2024

View License

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 Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.2

fixed video links

1.0.1

added a video link

1.0.0