Merged adaptions to parameters from Kurt Garloff.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3766 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
@@ -1,3 +1,17 @@
|
||||
2001-01-08 Marcus Meissner <marcus@jet.franken.de>
|
||||
|
||||
* bayer.c, saturate.c, library.c:
|
||||
|
||||
From Kurt Garloff:
|
||||
|
||||
* The sharpening seems to be overdone a bit -- for darker images,
|
||||
the noise gets amplified too much and the picutre gets too
|
||||
snowy/grainy.
|
||||
* The colour correction sometimes also seems to go too far and
|
||||
a compormise between the original and the processed image would
|
||||
seem best.
|
||||
|
||||
|
||||
2001-01-06 Marcus Meissner <marcus@jet.franken.de>
|
||||
|
||||
* bayer.c, library.c: Integrated a speedup of the
|
||||
|
||||
@@ -52,8 +52,8 @@ void bayer_unshuffle_preview(int w, int h, int scale, unsigned char *raw, unsign
|
||||
Gamma correction (trans[] values generated by (pow((i-17)/256, GAMMA)*255)
|
||||
where GAMMA=0.5, 1<i<255. */
|
||||
|
||||
#define GAMMA 0.450
|
||||
#define ZERO 17.0
|
||||
#define GAMMA 0.540
|
||||
#define ZERO 16.0
|
||||
|
||||
void light_enhance(int vw, int vh, int coarse, int fine, unsigned char *output)
|
||||
{
|
||||
|
||||
@@ -266,7 +266,7 @@ int stv0680_get_image(GPPort *port, int image_no, char **data, int *size)
|
||||
light_enhance(w,h,coarse,fine,tmpdata1);
|
||||
gp_bayer_interpolate (tmpdata1, w, h, BAYER_TILE_GBRG_INTERLACED);
|
||||
stv680_hue_saturation (w, h, tmpdata1, tmpdata2 );
|
||||
sharpen (w, h, tmpdata2, *data + strlen(header), 50);
|
||||
sharpen (w, h, tmpdata2, *data + strlen(header), 35);
|
||||
free(tmpdata2);
|
||||
free(tmpdata1);
|
||||
free(raw);
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
|
||||
/* FIXME: should be variable, and user configurable. Which is problematic in
|
||||
* gphoto2 :/ */
|
||||
#define HUE_DATA 50
|
||||
#define LIGHTNESS_DATA 50
|
||||
#define SATURATION_DATA 50
|
||||
#define HUE_DATA 40
|
||||
#define LIGHTNESS_DATA 40
|
||||
#define SATURATION_DATA 40
|
||||
|
||||
const static int default_colors[6][3] =
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user