Research Article

High-Capacity Data Hiding Method Based on Two Subgroup Pixels-Value Adjustment Using Encoding Function

Algorithm 1

Step 1. Divide n adjacent pixels into two groups and , where .
Step 2. Transform s into decimal by formula
Step 3. Construct the Algorithm 1, where , are integers and .
    
Step 4. Bring into Algorithm 1 and obtain
    
 Where
Step 5. Calculate the difference D between into by Algorithm 1.
    
Step 6. is obtained by embedding into in the following steps.
 if
  
 if
  ,
 if
  transform to , for each i in do
   
   , if
 if
  transform to , for each i in
   
   , if
Step 7. Bring into Algorithm 1 to calculate and get the difference D between and by . Finally, repeat step 6 to obtain .
Step 8. Merge and to get .
Step 9. Repeat from steps 20 to 27 until all secret data are embedded.