Flössie
37027e46bd
Fix non-OpenMP build
2019-02-06 06:54:31 +01:00
Alberto Griggio
75964dfd8b
make sure that dehaze doesn't trigger Fattal tone mapping
...
(bad interaction due to sloppy rebasing)
2018-10-10 17:08:36 +02:00
Alberto Griggio
14ac4babec
added haze removal tool
...
Based on the paper:
"Single Image Haze Removal Using Dark Channel Prior" by He, Sun and Tang
using a guided filter for the "soft matting" of the transmission map
2018-10-10 10:02:06 +02:00
Alberto Griggio
39728c3286
rtengine: added rescale.h header with rescaleBilinear and rescaleNearest
...
taken from tmo_fattal02.cc and moved in their own header to allow reuse
2018-10-03 15:07:24 +02:00
Hombre
fbc81028eb
First batch of variable name normalisation in ICM tool, see #4478
2018-05-14 00:57:55 +02:00
Alberto Griggio
b42a45b481
merged branch 'unbounded-processing' into 'dev'
2018-03-28 21:35:23 +02:00
heckflosse
e69952d654
use double precision for large summations, #4408
2018-02-21 14:28:54 +01:00
Alberto Griggio
aa673ce15d
fattal: removed negative clipping
2018-02-20 13:58:32 +01:00
luz.paz
c3c3ceac79
Misc. typos
...
Found via `codespell`
+ removed rtengine/dcraw.patch per discussion in https://github.com/Beep6581/RawTherapee/pull/4395
2018-02-14 14:07:18 -05:00
Alberto Griggio
8a510315c2
Fattal: added anchor parameter
2018-01-25 22:13:17 +01:00
heckflosse
fc77fd6964
Remove all BENCHMARK defines
2018-01-22 19:04:42 +01:00
heckflosse
53ec11eea9
Cleanup fftw when closing RT, instead of after each time fftw is used. Speeds up fattal and luminance denoise
2018-01-17 20:39:01 +01:00
Alberto Griggio
de65194b5f
fattal: commented out some unused vars (silence gcc warnings)
2018-01-15 22:25:05 +01:00
heckflosse
db978e360d
Trying to fix HDR tool (Fattal) produce zoom dependant luminosity #4306
2018-01-15 21:53:34 +01:00
Alberto Griggio
3c50e8ff5b
Fattal: remove nondeterminism due to openmp and use a more robust comparison for finding the max luminance
...
Addresses #4306 and at least mitigates it
2018-01-14 23:47:13 +01:00
Flössie
3b6cc19ae9
Fix some Coverity warnings
2018-01-12 18:20:21 +01:00
Alberto Griggio
a748354b7b
Fattal: do not consider clipped values when determining the luminance scaling factor
...
This solves the issue with "color propagation" highlight reconstruction described in #4255
2018-01-11 15:05:15 +01:00
heckflosse
9ce829e2f6
Small speedup for fattal
2018-01-09 00:43:13 +01:00
heckflosse
529a7f3003
tmo_fattal02.cc added nowait, #4255
2018-01-08 15:27:41 +01:00
heckflosse
6c6786929c
Fixe race in tmo_fattal, #4255
2018-01-08 15:21:56 +01:00
Alberto Griggio
7f89c362d0
HDR tone mapping: normalize luminance relative to the brightest point in the input
...
(Also tweaked the default value for the "amount" slider)
Fixes #4255
2018-01-08 14:54:55 +01:00
heckflosse
3b6cf1d881
Disabled StopWatch
2017-12-07 22:57:19 +01:00
heckflosse
a633f3d233
fattal: optimized memory usage
2017-12-07 22:51:19 +01:00
Alberto Griggio
8e43df5abb
Fattal: fixed off-by-one error in rescaling the luminance
...
Fixes #4200
2017-11-28 08:57:45 +01:00
heckflosse
0950963f84
Moved findMinMaxPercentile() to rt_algo.*, use bool multiThread in fattal tonemapper, fixes #4195
2017-11-25 13:56:42 +01:00
heckflosse
d31aca2e6a
Disabled timing code in fattal tone mapper
2017-11-22 01:31:19 +01:00
Alberto Griggio
e9d3053265
run tmo_fattal02.cc through astyle
2017-11-18 17:03:57 +01:00
heckflosse
67b6aec64e
Fattal: one less buffer alloc/dealloc
2017-11-09 13:06:12 +01:00
Alberto Griggio
b0ebcc30eb
Fattal: reduced number of temporary buffers needed
2017-11-08 21:49:50 +01:00
heckflosse
cb735125a2
Removed two stopwatches
2017-11-08 19:09:06 +01:00
heckflosse
2ff9ca0145
lot of small speedups for fattal
2017-11-08 19:01:52 +01:00
Alberto Griggio
75405404a9
Fattal: speed up FFT computation by rescaling the images to FFTW-friendly dimensions
2017-11-08 18:07:03 +01:00
Alberto Griggio
b1938e272c
added a dedicated Median_Denoise function that applies the median filter only on dark pixels
...
This gives a slight performance improvement for Fattal
2017-11-07 18:00:00 +01:00
Alberto Griggio
d37f82498b
Fattal: fixed typo in assertion, and added one more assertion
2017-11-06 22:48:40 +01:00
heckflosse
11f756239b
Added comment to findMaxMinPercentile, interpolated minLum and maxLum. Removed some stop watches
2017-11-06 20:53:36 +01:00
heckflosse
d810de4445
Double speed for rescale_bilinear
2017-11-06 19:08:30 +01:00
heckflosse
356d495252
Merge branch 'hdr_tonemap_fattal' of https://github.com/Beep6581/RawTherapee into hdr_tonemap_fattal
2017-11-06 01:12:37 +01:00
heckflosse
ab061283a6
fattal, about 100x speedup for findMaxMinPercentile()
2017-11-06 01:12:15 +01:00
Alberto Griggio
1a2b7d2cde
Fattal: extract luminance using the current working space matrix, not the sRGB one
...
Doesn't seem to make any practical difference though...
2017-11-05 21:32:06 +01:00
heckflosse
facb37be91
Speedup for exp-loop
2017-11-05 16:47:22 +01:00
heckflosse
1e0c5bfb5e
solved merge conflict
2017-11-05 16:29:59 +01:00
heckflosse
59043cc978
Speedup for log-loop in tmo_fattal02
2017-11-05 16:25:13 +01:00
Alberto Griggio
d187c2e20b
Fattal: raised threshold on black pixels clipping to avoid pixel artifacts
2017-11-05 16:05:50 +01:00
Alberto Griggio
d7136fc668
Fattal: apply a median filter on luminance on the deep shadows, to avoid boosting noise
...
Now preview matches output also for noisy images
2017-11-05 15:09:22 +01:00
Alberto Griggio
ceb3ebf24b
Fattal: protect fftwf calls with a mutex (shared also with the denoise routine)
...
Initialization of the fftwMutex now happens in rtengine::init()
2017-11-05 13:34:33 +01:00
Hombre
0a9f382967
Refactored name for Fattal / Alpha & Beta + updated ranges (see #4168 )
...
Ranges for Threshold and Amount is now -100 / +100 integer. Effective
range should be modified in ImProcFunctions::ToneMapFattal02 if ever.
2017-11-04 23:09:58 +01:00
Alberto Griggio
9db14cc521
Fattal: added sanity check for the values of alpha and beta
2017-11-04 21:10:26 +01:00
Alberto Griggio
f6faccc759
moved Fattal earlier in the pipeline (before rgbProc, right after distortion/perspective/ca)
2017-11-04 18:16:51 +01:00
Alberto Griggio
c9615d440d
trying out some hacks to make Fattal results less dependent on the size of the input image
2017-11-03 22:10:10 +01:00
Alberto Griggio
d418b9d01d
various fixes to Fattal, and moved it later in the pipeline
2017-11-03 14:58:27 +01:00