Research Article
A High-Capacity Image Steganography Method Using Chaotic Particle Swarm Optimization
Algorithm 2
Pseudocode of data embedding.
(1) | Divide the cover and secret images into blocks using the X-Side-Length and Y-Side-Length particles | (2) | For each block, convert the secret image into a sequence of bits using the SB-Pole and SB-dire particles | (3) | if (SB-Pole = 1) | (4) | Complement the secret bits | (5) | end if | (6) | if (SB-dire = 1) | (7) | Reverse the direction of the secret bits | (8) | end if | (9) | Create a sequence of cover pixels using the Direction, X-offset, and Y-offset particles | (10) | Convert the cover pixels sequence into a sequence of bits using the Bit-Planes and BB-dire particles | (11) | Apply the CPSO algorithm (Algorithm 1) | (12) | if (number of secret bits < cover pixel bits) | (13) | Embed secret bits into corresponding cover pixel bits | (14) | Embed the particles into the last row of cover image | (15) | Calculate PSNR of the stego-image | (16) | end if |
|