SwisTrack/Components/SpecificColorSubtraction
Description
editThis 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
editA color image.
Output
editA color image.
Parameters
editBlue channel
editValue of the blue channel of the color to track (0..256)
Green channel
editValue of the green channel of the color to track (0..256)
Red channel
editValue of the red channel of the color to track (0..256)
Correct Mean
editSpecify 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
editSpecify wheter SwisTrack open a window to select the color on the input image, or use the color defined by the three parameters above.