Skip to main content
. 2023 Feb 27;23(5):2625. doi: 10.3390/s23052625
Algorithm 1 Projection of each pixel.
Input: Original image A;
Output: D0(i,j),D45(i,j),D90(i,j),D135(i,j) for each (i,j) in image A
  • 1:

    initial i=0 and j=0;

  • 2:

    for each (i,j)A do

  • 3:

         Compute G0(i,j), G90(i,j) with Equations (2) and (3);

  • 4:

         Compute D0(i,j),D45(i,j),D90(i,j),D135(i,j) with Equations (12)–(15);

  • 5:

    end for

  • 6:

    returnD0(i,j),D45(i,j),D90(i,j),D135(i,j);