Mathematical Problems in Engineering / 2014 / Article / Alg 1

Research Article

Sensor Selection and Integration to Improve Video Segmentation in Complex Environments

Algorithm 1

Pseudocode for determining if a new detected component falls within the expected movement of a stored component.
Determine the stored components of the previous frame
Determine the detected components of the current frames
FOR  (each extreme point on the stored component)
  FOR  (each pixel included in the new component detected)
     Calculate the distance between the current extreme pixel and the
     current pixel from the new detected component
   IF  ( is less than the expected movement)
       (i) New detected component has presence in the expected
        movement, store the new detected component for next frame
       (ii) Break to next detected component
   END-IF
  End-FOR
END-FOR