SwisTrack/Components/SpecificColorSubtraction

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

Description[edit]

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]

SwisTrack ColorImage.jpg

A color image.

Output[edit]

SwisTrack SpecificColorSubtraction.jpg

A color image.

Parameters[edit]

Blue channel[edit]

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

Green channel[edit]

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

Red channel[edit]

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

Correct Mean[edit]

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]

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