Skip to main content
. 2020 Oct 2;20(19):5655. doi: 10.3390/s20195655
Algorithm 1 The pseudo-code for the bin assignment step
  1. Calculate the absolute values of Gy and Gx

  2. Store the sign of (Gy)×(Gx) in the sign bit

  3. Calculate the scaled logarithms of Gy and Gx

  4. Based on the log value, map to the −90 to 0 degrees bins if the sign bit is negative

  5. Based on the log value, map to the 0 to +90 degrees bins if the sign bit is positive