Into

Modules

Documentation

classPiiCamera::GrayPixel

#include <PiiBayerConverter.h>

A Bayer decoding functor that directly converts the image to gray levels by averaging RGB channels.

Description

T is the output type.

Using GrayPixel as the pixel type in Bayer decoding is faster than first converting to RGB and then to gray, but it is still far from optimal. If you really need fast direct conversion to gray, you need to a) create four custom interpolators that calculate the gray value of the four pixels in the pattern (See, for example, StraightInterpolator.) b) subclass BayerDecoder with your custom interpolators set to the red color channel c) use the RedPixel functor to extract the outcome.

Public types

typedef T

Public member functions

Type
(
  • int r
  • int g
  • int b
)

Function details

  • Type operator()

    (
    • int r
    • int g
    • int b
    )
    [inline]
Notes (0)

Add a note

Not a single note added yet. Be the first, add yours.