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!