I am trying to understand the inner workings of the VLFeat SIFT algorithm and I notice this statement when computing the image gradient:
*grad++ = vl_mod_2pi_f (vl_fast_atan2_f (gy, gx) + 2*VL_PI);
I am wondering if this expression is not the same as vl_fast_atan2_f (gy, gx)
as we are adding 2 PI
and the modulo of the expression on RHS should evaluate to atan2(gy, gx)
?