SwisTrack/Components/ConvertToGray

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Description[edit | edit source]

This component converts the input frame into a grayscale image. If the input frame is a grayscale image already, the image is left untouched. In all other cases, an appropriate conversion is applied.

Input[edit | edit source]

A grayscale or a color image.

Output[edit | edit source]

A grayscale image.

Parameters[edit | edit source]

Channel[edit | edit source]

All converts the image to grayscale using the OpenCV standard BGR-to-grayscale conversion.

If a channel is selected, only the selected channel is retained.