Question regarding function computePsPhaseMap

hi,

from line 667 of opencv_contrib/sinusoidalpattern.cpp at c3de0d3d9076250aa8b437cac7cfdeb70d95d6c3 · opencv/opencv_contrib · GitHub

the function computePsPhaseMap , why the formula atan2(num, den) is different from the formula image

from Phase shifting algorithms for fringe projection profilometry: A review (Journal Article) | DOE PAGES