Jump to content

SwisTrack/Components/DoubleThresholdColorIndependent

From Wikibooks, open books for an open world

Description

[edit | edit source]

This step intends to separate the pixels that belongs to tracked objects. The pixels kept are in white and the black pixels will be considered as the background. Most of the time, this step follows a preprocessing method like background subtraction. In this specific case, the output pixel is white if the three channel values of the input pixel is inside of the respective color boundaries. output= (Blue Low <= inputBlue <= Blue High) && (Green Low <= inputGreen <= Green High) && (Red Low <= inputRed <= Red High)

Input

[edit | edit source]

A color image.

Output

[edit | edit source]

A binary (black and white) image.

Parameters

[edit | edit source]

Blue Low

[edit | edit source]

Lower boundary of the blue channel.

Blue High

[edit | edit source]

Higher boundary of the blue channel.

Green Low

[edit | edit source]

Lower boundary of the green channel.

Green High

[edit | edit source]

Higher boundary of the green channel.

Red Low

[edit | edit source]

Lower boundary of the red channel.

Red High

[edit | edit source]

Higher boundary of the red channel.