SwisTrack/Components/SpecificColorSubtraction

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Description[edit | edit source]

This component subtracts a specific color from the input image. In the example, we were tracking the color of the shelters (red). The tracked objects in the resulting image will be black, and you can use an inverted threshold to highlight them.

To make the system more robust to varying light conditions, the average intensity value of the first input image (or the image of selection) can be subtracted from the subsequent images.

Input[edit | edit source]

A color image.

Output[edit | edit source]

A color image.

Parameters[edit | edit source]

Blue channel[edit | edit source]

Value of the blue channel of the color to track (0..256)

Green channel[edit | edit source]

Value of the green channel of the color to track (0..256)

Red channel[edit | edit source]

Value of the red channel of the color to track (0..256)

Correct Mean[edit | edit source]

Specify whether to correct the average intensity value of the input image with the average intensity value of the background image. This option makes the tracking less sensible to lighting conditions variations.

Specify the color on an image[edit | edit source]

Specify wheter SwisTrack open a window to select the color on the input image, or use the color defined by the three parameters above.