libgphoto2 photo camera library (libgphoto2) API
2.4.14
Main Page
Related Pages
Data Structures
Files
File List
Globals
bayer.h
Go to the documentation of this file.
1
24
#ifndef __BAYER_H__
25
#define __BAYER_H__
26
32
typedef
enum
{
33
BAYER_TILE_RGGB
= 0,
34
BAYER_TILE_GRBG
= 1,
35
BAYER_TILE_BGGR
= 2,
36
BAYER_TILE_GBRG
= 3,
37
BAYER_TILE_RGGB_INTERLACED
= 4,
38
BAYER_TILE_GRBG_INTERLACED
= 5,
39
BAYER_TILE_BGGR_INTERLACED
= 6,
40
BAYER_TILE_GBRG_INTERLACED
= 7,
41
}
BayerTile
;
42
43
int
gp_bayer_expand
(
unsigned
char
*input,
int
w,
int
h,
unsigned
char
*output,
44
BayerTile
tile);
45
int
gp_bayer_decode
(
unsigned
char
*input,
int
w,
int
h,
unsigned
char
*output,
46
BayerTile
tile);
47
int
gp_bayer_interpolate
(
unsigned
char
*image,
int
w,
int
h,
BayerTile
tile);
48
/*
49
* The following two functions use an alternative procedure called Adaptive
50
* Homogeneity-directed demosaicing instead of the standard bilinear
51
* interpolation with basic edge-detection method used in the previous two
52
* functions. To use or test this method of Bayer interpolation, just use
53
* gp_ahd_decode() in the same way and in the same place as gp_bayer_decode()
54
* is used.
55
*/
56
57
int
gp_ahd_decode
(
unsigned
char
*input,
int
w,
int
h,
unsigned
char
*output,
58
BayerTile
tile);
59
int
gp_ahd_interpolate
(
unsigned
char
*image,
int
w,
int
h,
BayerTile
tile);
60
61
#endif
/* __BAYER_H__ */
libgphoto2
bayer.h
Generated on Sat Nov 2 2013 06:06:35 for libgphoto2 photo camera library (libgphoto2) API by
1.8.1.2