SwisTrack/Components/SpecificColorSubtraction

Description
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


A color image.

Output


A color image.

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

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

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

Correct Mean
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
Specify wheter SwisTrack open a window to select the color on the input image, or use the color defined by the three parameters above.