Skip to main content

Table 3 The decoder algorithm

From: Reversible data hiding for binary images based on adaptive overlapping pattern

1:

Obtain D3 from B3 by the Eq. 1

2:

Get L, EndPos3, and BegPos3 from side information

3:

Extract LM2C from D3, and restore D3 to D2 by including mode

4:

Decompress LM2C to LM2

5:

Get EndPos2 and BegPos2 from side information

6:

Extract LM1C form D2 by the excluding mode, and restore D1 under LM2

7:

Decompress LM1C to LM1

8:

Extract SD from D1 by the excluding mode, and restore D0 under LM1

9:

Obtain B0 form D0 by the inverse of Eq. 1