From: Niels K. B. J. <nk...@us...> - 2009-10-29 03:30:28
|
Update of /cvsroot/ufraw/ufraw In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv15102 Modified Files: ufraw_ufraw.c Log Message: Scale wavelet denoising threshold. Index: ufraw_ufraw.c =================================================================== RCS file: /cvsroot/ufraw/ufraw/ufraw_ufraw.c,v retrieving revision 1.200 retrieving revision 1.201 diff -u -d -r1.200 -r1.201 --- ufraw_ufraw.c 28 Oct 2009 04:55:40 -0000 1.200 +++ ufraw_ufraw.c 29 Oct 2009 03:30:08 -0000 1.201 @@ -1043,7 +1043,8 @@ img->height, raw->raw.colors, raw->rgbMax); rawimage = raw->raw.image; raw->raw.image = (dcraw_image_type *)img->buffer; - dcraw_wavelet_denoise(raw, uf->conf->threshold); + /* The threshold is scaled for compatibility */ + dcraw_wavelet_denoise(raw, uf->conf->threshold * sqrt(uf->raw_multiplier)); dcraw_finalize_raw(raw, dark, uf->developer->rgbWB); raw->raw.image = rawimage; } |