summaryrefslogtreecommitdiff
path: root/libgphoto2/bayer.h
diff options
context:
space:
mode:
authorTheodore Kilgore <kilgota@auburn.edu>2008-04-20 21:46:48 +0000
committerTheodore Kilgore <kilgota@auburn.edu>2008-04-20 21:46:48 +0000
commit5356a21b26d750ab1c802d74160af7d7508c86cf (patch)
treeeaf6188c4359b7d0c616a50c7d2d06c0b61ba705 /libgphoto2/bayer.h
parentea6d5704d7c7a9b4cb25d8bc648b4028d07b5cda (diff)
downloadlibgphoto2-5356a21b26d750ab1c802d74160af7d7508c86cf.tar.gz
Hooking up AHD Bayer algorithm
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11115 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'libgphoto2/bayer.h')
-rw-r--r--libgphoto2/bayer.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/libgphoto2/bayer.h b/libgphoto2/bayer.h
index 92a8673e9..41c6bc4f5 100644
--- a/libgphoto2/bayer.h
+++ b/libgphoto2/bayer.h
@@ -45,4 +45,17 @@ int gp_bayer_expand (unsigned char *input, int w, int h, unsigned char *output,
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 /* __BAYER_H__ */