Last modified on 3 September 2007, at 11:00

SwisTrack/Components/SpecificColorSubtraction

DescriptionEdit

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.

InputEdit

SwisTrack ColorImage.jpg

A color image.

OutputEdit

SwisTrack SpecificColorSubtraction.jpg

A color image.

ParametersEdit

Blue channelEdit

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

Green channelEdit

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

Red channelEdit

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

Correct MeanEdit

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 imageEdit

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