# chromahold

The chromahold element will remove all color information for all colors except a single one and converts them to grayscale.

Sample pipeline:

     gst-launch-1.0 videotestsrc pattern=smpte75 ! \
       chromahold target-r=0 target-g=0 target-b=255 ! \
       videoconvert ! autovideosink     \

This pipeline only keeps the red color.

## Hierarchy

    GObject
        ╰──GInitiallyUnowned
            ╰──GstObject
                ╰──GstElement
                    ╰──GstBaseTransform
                        ╰──GstVideoFilter
                            ╰──chromahold

## Factory details

Authors: – Sebastian Dröge <sebastian.droege></sebastian.droege>

Classification: – `Filter/Effect/Video`

Rank – none

Plugin – coloreffects

Package – GStreamer Bad Plug-ins

## Pad Templates

### `sink`

    video/x-raw:
             format: { ARGB, BGRA, ABGR, RGBA, xRGB, BGRx, xBGR, RGBx }
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]

Presence – always

Direction – sink

Object type – GstPad

### `src`

    video/x-raw:
             format: { ARGB, BGRA, ABGR, RGBA, xRGB, BGRx, xBGR, RGBx }
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]

Presence – always

Direction – src

Object type – GstPad

## Properties

### target-b

    “target-b” guint

The Blue target

Flags : Read / Write

Default value : 0

### target-g

    “target-g” guint

The Green target

Flags : Read / Write

Default value : 0

### target-r

    “target-r” guint

The Red target

Flags : Read / Write

Default value : 255

### tolerance

    “tolerance” guint

Tolerance for the target color

Flags : Read / Write

Default value : 30

The results of the search are