The map of differences is basically the difference between the known and observed pattern, which you mention at the beginning. You use this when calculating depth.
The distance between the projector and the camera is also taken into account.
See the following figure:

Pr Zr Kinect Zo (, ). D - , d - 2D . f - , b - C L.
, , :

, , - Kinect" . . .