studying a scientific article**, I ran into something I cannot explain:
$$l := \left\lfloor{\frac{x+y}{2}}\right\rfloor ,\quad h := x - y \\ x = l + \left\lfloor{\frac{h+1}{2}}\right\rfloor, \quad y = l - \left\lfloor{\frac{h}{2}}\right\rfloor$$
can someone explain the $+1$ in $x$ ?
** Tian, J., 2003. Reversible data embedding using a difference expansion. IEEE transactions on circuits and systems for video technology, 13(8), pp.890-896.

If $x$ and $y$ share the same parity, then $$l+\big\lfloor \frac{h+1}2\big\rfloor=\frac{x+y}{2}+\frac{x-y}2=x$$
The $+1$ is not used.
However, if they do not share the same parity, then
$$l+\big\lfloor \frac{h+1}2\big\rfloor=\frac{x+y-1}{2}+\frac{x-y+1}2=x$$