Input: secret image A of size (n, m) and secret image B of size (n, m) |
Output: share s1 of size (n, m + 1), share s2 of size (n, m) |
1. Define zero matrix S of size (n, 1) 2. For j = 1 to m do 3. For i = 1 to n do 4. a = nearest retardation to Ai,j of the eight retardations in Lab color space 5. b = nearest retardation to Bi,j of the eight retardations in Lab color space 6. While not in [−1120, 1120] 7. 8. 9. 10. 11. 12. For i = 1 to n do 13. Randomly set pixel to one of the eight retardations with a positive or negative sign. 14. For j = 1 to m do 15. For i = 1 to n do 16. 17. |