![]() |
DUNE: Uniform Navigational Environment
2017.01.0
|
Bayer decoder (demosaicing).
Public Types | |
| enum | Method { METHOD_NEAREST, METHOD_BILINEAR, METHOD_HQLINEAR } |
| enum | Tile { TILE_GBRG, TILE_GRBG, TILE_RGGB, TILE_BGGR } |
Public Member Functions | |
| BayerDecoder (Tile tile, Method method=METHOD_BILINEAR) | |
| void | setMethod (Method method) |
| void | decodeToRGB24 (const uint8_t *bayer, uint8_t *rgb, int width, int height) const |
| DUNE::Media::BayerDecoder::BayerDecoder | ( | Tile | tile, |
| Method | method = METHOD_BILINEAR |
||
| ) |
Constructor.
| [in] | tile | tile format of Bayer data. |
| [in] | method | conversion method. |
References setMethod(), TILE_BGGR, TILE_GBRG, and TILE_GRBG.
|
inline |
Convert Bayer mosaic to RGB24.
| [in] | bayer | bayer mosaic. |
| [out] | rgb | RGB24 image. |
| [in] | width | width of bayer mosaic. |
| [in] | height | height of bayer mosaic. |
| void DUNE::Media::BayerDecoder::setMethod | ( | Method | method | ) |
Set decoding method.
| [in] | method | decoding method. |
References METHOD_HQLINEAR, and METHOD_NEAREST.
Referenced by BayerDecoder().
