Code for the paper: Taiyong Li, Jiayi Shi, and Duzhong Zhang "Color image encryption based on joint permutation and diffusion," Journal of Electronic Imaging 30(1), 013008. https://doi.org/10.1117/1.JEI.30.1.013008
run demo_baboon.m to encrypt and decrypt the color image "baboon.tiff".