Skip to main content
. 2020 Apr 14;20(8):2212. doi: 10.3390/s20082212
Algorithm 2 Combine single frames into a group.
 Input:
  (1) F: A single frame point clouds.
  (2) L: The classification result, the value is wire, dropper or pole.
  (3) S: The set of single frames. This output is used as the next input.
  (4) C: The category of S. The value is wire, dropper or pole, and the default is wire. This output is used as the next input.
  (5) M: The map consisting of C and the minimum number of frames forming a group representing C.
 Output:
   result: The combined single frames. It may be null.
  • 1:

    initial resultnull;

  • 2:

    push the single frame into the set S.append(F);

  • 3:

    ifLwirethen

  • 4:

         CL;

  • 5:

    end if

  • 6:

    ifLength(S)M[C]andL=wirethen

  • 7:

         resultS;

  • 8:

         S.clear();

  • 9:

         Cwire;

  • 10:

    end if

  • 11:

    returnresult, S, C