55 Commits

Author SHA1 Message Date
Lawrence Lee
fb5094b6f9 Merge from branch 'dev' 2020-05-04 14:07:45 -07:00
Lawrence Lee
357cf5b96a Remove scaling from perspective correction
Scaling is applied at the end of all geometric transformations, so it
would be more appropriate outside of the perspective correction tool.
Such an implementation would also work better with the auto-fit feature.
2020-02-26 22:52:55 -08:00
Lawrence
f83a62be5b Add back the old perspective tool
Add perspective correction method chooser to allow choice between the
original perspective tool (simple) and the new one (camera-based).
2019-12-28 17:18:59 -08:00
Lawrence
f9a8875bb5 Add more perspective correction adjusters
Add camera lens/sensor shift support with horizontal/vertical shift
adjusters.

Add shifting and rotation of corrected image. This allows
post-correction adjustments to be made more easily given the fixed image
canvas size.

Add scaling of final result. This also helps reduce frustrations with
the fixed image canvas size.

Replace field of view with focal length and crop factor. Use of focal
length and crop factor is more common than diagonal angular field of
view. The new adjusters should be more intuitive for most photographers.
The implementation of perspective correction uses a focal length
relative to the image dimensions. The existing code calculates that
focal length with trigonometry. The new code does it by multiplying
by a ratio.

Replace vertical bias with horizontal and vertical perspective
distortion recovery. Vertical bias is not intuitive as it causes
vertical lines to converge off-center if horizontal correction is
applied. The new adjusters perform perspective distortion on the
projection of the corrected image, allowing vertical/horizontal lines to
converge towards the center lines of the image.

Refactor perspective transformation math to use dynamically computed
homogeneous coordinate matrices instead of pre-calculated formulas. This
should add some overhead, but results in more maintainable code and
possible improved performance due to the reduced number of arithmetic
and assignments needed for each pixel.

Integrate new adjusters in the GUI. This includes fine granularity for
batch processing add/set modes and history.
2019-12-27 16:40:41 -08:00
Desmis
c58d2a1d75 merge with dev 2019-11-14 14:07:04 +01:00
Ingo Weyrich
3be7016517 Capture sharpening: Remove range adjuster and introduce 2019-11-13 21:05:24 +01:00
Ingo Weyrich
e525f5bec1 Capture sharpening: added range-adjuster to exclude bright areas from sharpening 2019-11-12 14:37:15 +01:00
Ingo Weyrich
d32c570383 Capture sharpening: removed gamma 2019-11-10 16:05:24 +01:00
Desmis
d621721ffe merge wit dev 2019-11-07 07:17:19 +01:00
Ingo Weyrich
b3b1008270 Further reduction of include dependencies 2019-11-02 17:29:26 +01:00
Ingo Weyrich
c1f9120ef4 Further reduction of include dependencies 2019-11-01 21:20:52 +01:00
Desmis
00df4707a8 merge with dev 2019-09-11 11:41:24 +02:00
Ingo Weyrich
ba43437220
Merge pull request #5445 from Beep6581/capture_sharpening
Merge Capture sharpening into dev to get more tests
2019-09-10 19:27:01 +02:00
Morgan Hardwood
60b2196bce Updated gnu.org links to use HTTPS 2019-09-10 12:34:57 +02:00
Ingo Weyrich
ce3ca966f6 Capture sharpening: some cleanups 2019-08-18 11:16:53 +02:00
Desmis
83f487753c Improve shadows-Highlight Residual 2019-05-27 09:23:56 +02:00
Desmis
fc9867eb2d Improvment to residual image 2019-05-21 07:48:18 +02:00
heckflosse
46aabd2003 Unfix fixed white level, #5187 2019-02-23 14:00:45 +01:00
Flössie
1ebbe0a096 Resize baBehav on load (#4828) 2018-12-15 15:12:52 +01:00
Roel Baars
c8300b137c
Add Crop reset button - 2nd attempt (#5015)
Add dedicated reset button for Crop, rearrange some GUI, disable crop buttons in batch mode
2018-11-23 19:10:04 +01:00
Alberto Griggio
b50b8dea9f merge with dev 2018-10-27 16:11:17 +02:00
heckflosse
2696037cb8 Batch edit is broken, fixes #4886 2018-10-23 15:36:07 +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
Hombre
180277778a Merge branch 'dev' into testoutputprofile 2018-07-09 22:12:08 +02:00
Alberto Griggio
7b0383fd2f merge 'soft-light' into 'dev' 2018-06-29 23:34:31 +02:00
Hombre
fb0c95969b Creation of the ICCProfileCreator 2018-06-25 00:43:11 +02:00
Hombre
e2dc8ea2c3 Merge branch 'dev' into testoutputprofile 2018-06-14 21:47:14 +02:00
heckflosse
c3f163a323 Added 4-pass xtrans demosaic 2018-06-03 16:22:34 +02:00
Hombre
a0b8626b7d Adding ADD/SET mechanism to the raw processing tools
see #4579
2018-05-31 00:44:16 +02:00
heckflosse
6f6dafe214 Added Contrast threshold adjuster to PR Sharpening, fixed some bugs, #4551 2018-05-21 16:10:30 +02:00
heckflosse
1a5545c461 Added contrast threshold adjuster for sharpening tool, #4551 2018-05-20 17:37:42 +02:00
Hombre
fbc81028eb First batch of variable name normalisation in ICM tool, see #4478 2018-05-14 00:57:55 +02:00
heckflosse
ee5b1dbbc8 Microcontrast: add Contrast threshold adjuster, #4551 2018-05-13 19:07:13 +02:00
Alberto Griggio
112de05700 added SoftLight tool 2018-04-10 09:42:22 +02: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
Alberto Griggio
156cb762ec removed local contrast inside the S/H tool (remapped to the new local contrast tool)
See #4247
2017-12-22 23:59:44 +01:00
Alberto Griggio
0aff2f7c6c added partial paste and add/set preferences for local contrast 2017-12-20 16:56:05 +01:00
Hombre
b64707bea6 Adding ADD/SET mechanism to Fattal HDR tool + PartialPaste dialog gui
+ range of Beta limited to 0.7 <> 1.3.

ADD/SET mechanism was missing for EPD tool too, so it's included in this
commit.

see #4168
2017-11-04 21:27:11 +01:00
heckflosse
b6bf4aba05 Don't create Metadata panel for batch editor, #4140 2017-10-13 20:54:03 +02:00
Hombre57
bfe24ab195 BatchToolPanelCoordinator::initSession fixed (issue #4014) 2017-09-02 18:21:12 +02:00
Hombre57
8df659d2fd Solving issue #4014 : Batch Edit "Transform-Resize" randomly changes
default values in USM

Reidentation in batchtoolpanelcoord.cc for a more compact code
2017-08-29 02:07:58 +02:00
heckflosse
f98ef980d9 remove unused retinex.gain and retinex.baselog 2017-07-09 21:37:39 +02:00
Alberto Griggio
dca0e41f35 added "Auto White Balance temperature bias" feature
This new slider in the White Balance tools allows to alter the computation of
the "auto white balance" by "biasing" it towards warmer or cooler
temperatures. The bias is expressed as a percentage of the computed
temperature, so that the resuling temperature is given by
"computedTemp + computedTemp * bias".
2017-02-12 17:39:52 +01:00
Flössie
0731975ff0 Apply modernize-use-nullptr
Setup:
- `mkdir tidy; cd tidy`
- `cmake .. -DCMAKE_BUILD_TYPE=debug -DPROC_TARGET_NUMBER=1 -DCACHE_NAME_SUFFIX=4 -DBINDIR=. -DDATADIR=. -DBUILD_BUNDLE=ON -DWITH_LTO=OFF -DOPTION_OMP=OFF -DCMAKE_EXPORT_COMPILE_COMMANDS=ON`
- `cd ..`
- `find -name '*.cc' -exec clang-tidy-3.8 -header-filter=.* -p=tidy -fix-errors -checks=modernize-use-nullptr {} \;`
2016-10-12 17:48:40 +02:00
Hombre
f904bc8f84 First patch of the LockableColorPicker tool.
Still Work In Progress, but can be used without too much hassle.
2016-09-30 01:03:57 +02:00
heckflosse
cd16b91be0 fixes #3395, unrelated bulk changes cause saturation setting to double its value 2016-08-17 16:15:35 +02:00
Beep6581
b98aa2966d Fixes Retinex Method not read from PP3, issue 2833 2015-10-31 21:27:43 +01:00
Beep6581
7ca8de08ab astyle all modified files in retinex branch 2015-10-17 14:45:24 +02:00
Desmis
e234bb9278 Batch processing GUI 2015-09-23 11:23:30 +02:00