camfilter
Drivers

camera image filtering driver More...

camera image filtering driver

The camfilter driver filters colors of pixels on whole given camera image.

Compile-time dependencies

- none

Provides

- camera

Requires

- camera

Configuration requests

- none

Configuration file options

- max_color_only (integer)
  - Default: 0 (no effect)
  - when set to 1, only max from R G B is passed, other values are changed to 0
- r_min (integer)
  - Default: -1 (no filter)
  - R minimal threshold value
- g_min (integer)
  - Default: -1 (no filter)
  - G minimal threshold value
- b_min (integer)
  - Default: -1 (no filter)
  - B minimal threshold value
- grey_min (integer)
  - Default: -1 (no filter)
  - GREY minimal threshold value
- r_max (integer)
  - Default: -1 (no filter)
  - R maximal threshold value
- g_max (integer)
  - Default: -1 (no filter)
  - G maximal threshold value
- b_max (integer)
  - Default: -1 (no filter)
  - B maximal threshold value
- grey_max (integer)
  - Default: -1 (no filter)
  - GREY maximal threshold value
- r_above (integer)
  - Default: 255
  - new value for each R value above the R maximal threshold
- g_above (integer)
  - Default: 255
  - new value for each G value above the G maximal threshold
- b_above (integer)
  - Default: 255
  - new value for each B value above the B maximal threshold
- grey_above (integer)
  - Default: 255
  - new value for each RGB value above the GREY maximal threshold
- r_below (integer)
  - Default: 0
  - new value for each R value below the R minimal threshold
- g_below (integer)
  - Default: 0
  - new value for each G value below the G minimal threshold
- b_below (integer)
  - Default: 0
  - new value for each B value below the B minimal threshold
- grey_below (integer)
  - Default: 0
  - new value for each RGB value below the GREY minimal threshold
- r_passed (integer)
  - Default: -1 (no change)
  - new value for each R value between the R minimal and the R maximal thresholds
- g_passed (integer)
  - Default: -1 (no change)
  - new value for each G value between the G minimal and the G maximal thresholds
- b_passed (integer)
  - Default: -1 (no change)
  - new value for each B value between the B minimal and the B maximal thresholds
- grey_passed (integer)
  - Default: -1 (no change)
  - new value for each RGB value between the GREY minimal and the GREY maximal thresholds (-1 = no change, -2 = RGB->GREY conversion)
  - this setting overrides other *_passed settings

Example

    driver
    (
      name "camfilter"
      requires ["camera:1"]
      provides ["camera:0"]
      r_min 128
      r_below 0
      r_passed 255
      g_passed 0
      b_passed 0
    )

Author
  Paul Osmialowski

Last updated 12 September 2005 21:38:45