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
|
(
|
Function details
-
Type operator()
(- int r
- int g
- int b
[inline]
Add a note
Not a single note added yet. Be the first, add yours.