SwisTrack/Components/OutputImageStatisticsBinary

From Wikibooks, open books for an open world
< SwisTrack‎ | Components
Jump to: navigation, search

Description[edit]

This component calculates and outputs the following statistical values of a binary image:

  • Number of non-zero pixels
  • Sum of all pixels
  • Mean and standard deviation of all pixels
  • Minimum and maximum value among all pixels

Combined with (adaptive) background subtraction, such values are useful to detect sudden changes or out-of-the-ordinary frames in a video stream.

Input[edit]

SwisTrack BinaryImage.png

A binary image.

Output[edit]

The statistical values are written to the NMEA stream.

Parameters[edit]

Each of the values mentioned above can be enabled or disabled. For performance reasons, it is advisable to enable only those values which are needed.