Loading...
Searching...
No Matches
bayer.h
Go to the documentation of this file.
#ifndef LIBGPHOTO2_BAYER_H
#define LIBGPHOTO2_BAYER_H
#include "libgphoto2/bayer-types.h"
int gp_bayer_expand (unsigned char *input, int w, int h, unsigned char *output,
BayerTile tile);
int gp_bayer_decode (unsigned char *input, int w, int h, unsigned char *output,
BayerTile tile);
int gp_bayer_interpolate (unsigned char *image, int w, int h, BayerTile tile);
/*
* The following two functions use an alternative procedure called Adaptive
* Homogeneity-directed demosaicing instead of the standard bilinear
* interpolation with basic edge-detection method used in the previous two
* functions. To use or test this method of Bayer interpolation, just use
* gp_ahd_decode() in the same way and in the same place as gp_bayer_decode()
* is used.
*/
int gp_ahd_decode (unsigned char *input, int w, int h, unsigned char *output,
BayerTile tile);
int gp_ahd_interpolate (unsigned char *image, int w, int h, BayerTile tile);
#endif /* !defined(LIBGPHOTO2_BAYER_H) */
bayer-types.h
bayer type definitions common to camlibs and libgphoto2
BayerTile
BayerTile
how the bayer CCD array is laid out
Definition bayer-types.h:33
gp_ahd_decode
int gp_ahd_decode(unsigned char *input, int w, int h, unsigned char *output, BayerTile tile)
Convert a bayer raster style image to a RGB raster.
Definition ahd_bayer.c:640
gp_bayer_interpolate
int gp_bayer_interpolate(unsigned char *image, int w, int h, BayerTile tile)
Interpolate a expanded bayer array into an RGB image.
Definition bayer.c:147
gp_ahd_interpolate
int gp_ahd_interpolate(unsigned char *image, int w, int h, BayerTile tile)
Interpolate a expanded bayer array into an RGB image.
Definition ahd_bayer.c:418
gp_bayer_expand
int gp_bayer_expand(unsigned char *input, int w, int h, unsigned char *output, BayerTile tile)
Expand a bayer raster style image to a RGB raster.
Definition bayer.c:75
gp_bayer_decode
int gp_bayer_decode(unsigned char *input, int w, int h, unsigned char *output, BayerTile tile)
Convert a bayer raster style image to a RGB raster.
Definition bayer.c:371