MATLAB: Pls explain This Code Of Image Ecryption For me ??

arnold transformcat mapimage encryption

Hello Can Someone Explain the code for me ???

Best Answer

The attached code is more of an image/pixel scrambling technique based on the Arnold Transformation. See the File Exchange for another implementation of this algorithm.
Basically, it just takes every pixel coordinate and maps it to a different coordinate using a matrix transform, and then repeats for a fixed number of iterations.
This piece of code is only valid for square grayscale images.
EDIT
See Arnold's cat map for details on this chaotic map (and on Vladimir Arnold).
Related Question