Skip to main content
. 2022 Jun 8;22(12):4359. doi: 10.3390/s22124359
Algorithm 1. Pixel Permutation
Input: Secret key K1=(a,X(0)) Henon map (1), Color image I.
Output: Array L of permuted pixels of an image I.
  •   1.

    Take the original image I, which is stored in an array Y with size M = P × Q × 3, where P indicates the number of rows and Q indicates the number of columns of the image matrix I.

  •   2.

    Use the key K1 with Henon map (1) to produce a sequence. Generate the chaotic sequence H={h1,h2,…,hM} and sort it in ascending order, the resulting sequence is H_={h_1,h_2,…,h_M}.

  •   3.

    Compute the permutation vector J by noting the positions of sequence terms of H in H_ and write down the transformed positions J={j1,j2,…,jM}.

  •   4.

    Use J to permute the positions of elements of an array Y to get L.