8749 Commits

Author SHA1 Message Date
Pandagrapher
320408306d
Build improvements + fix for window size/position (macOS) (#5771)
* Allow using relative path in MacOS for development builds
* [macOS] Fixes RT "cache"/"config" folder not located in the right place
In actual "dev" branch, RT "cache"/"config" folder is located in
"~/Application Support/RawTherapee" folder instead of
"~/Library/Application Support/RawTherapee" folder (as in v5.8 release
and discribed in RawPedia). Moreover, "CACHE_NAME_SUFFIX" cMake option
was not anymore considered.
* [macOS] Remember RT window position correctly, fixes #3209

As described in GTK documentation, some OS Windows Manager do not
consider setting window size and position before it is completely
created (which seems to be the case for macOS). In this commit,
restoring window size/position is now done after its creation.
Morevover, macOS menu bar height is now considered.
2020-05-28 12:26:14 +02:00
Flössie
82f0e4f117 Fix LGTM warning popping up in newlocallab2 2020-05-28 11:06:41 +02:00
rom9
f0720ff34c
Avoid overwriting c_black from inside ::preprocess when re-computing multipliers according to selected preprocess WB mode. Fixes #5765. 2020-05-20 08:29:19 +02:00
Desmis
90180a7d1f Improve denoise equalizer wavelet levels 2020-05-17 14:07:54 +02:00
Flössie
1d66bdc002 Fix leak in crxFreeImageData() (by Danny Heijl), fixes #5758 2020-05-17 09:55:41 +02:00
Desmis
6cae1c55d4 Fixed crash in wavelet level blur when preview is too small 2020-05-16 11:15:25 +02:00
Thanatomanic
464556b874
Naming changes for itcwb GUI elements (#5735)
Some naming changes for itcwb GUI elements
2020-05-15 09:58:14 +02:00
Ingo Weyrich
4f8d7c39f2
Merge pull request #5662 from rom9/preprocess_wb
Raw preprocessing WB
2020-05-13 21:01:31 +02:00
rom9
6590e6d98b Merge branch 'dev' into preprocess_wb 2020-05-13 19:47:09 +02:00
Desmis
5db57952ed Change label wavelet levels 2020-05-13 14:27:08 +02:00
Desmis
85cb2086dc
Merge pull request #5705 from Beep6581/wavtm
Wavelet levals :Change sensitivity sliders wavelet levels denoise
2020-05-13 08:18:37 +02:00
Desmis
cf0f2914e7 merge with dev 2020-05-13 07:39:13 +02:00
Desmis
99fd6162f8 Clean code 2020-05-12 16:28:17 +02:00
Benitoite
65f1b4c3d9
Update macOS packaging for 10.15.4
Several smaller fixes to provide an improved handling of installing/using RT on macOS.
* mac: update entitlements for 10.15.4
* mac: fix the CLI. Provides an un-codesigned rawtherapee-cli outside the app bundle for use on the terminal command line, using the app bundle's 3rd-party libraries.
* How to install RawTherapee.app and rawtherapee-cli for macOS
2020-05-12 14:17:53 +02:00
Desmis
c27cd841e4 Forgotten label Residual 2020-05-12 09:20:59 +02:00
Floessie
9bbd78ae29
Merge pull request #5739 from pinchartl/dev
rtexif: Fix conversion from RATIONAL to int, double or string
2020-05-12 09:15:20 +02:00
Desmis
e25f5aa455 Rebuild wavtm with curve finerCoraser - language - various chnages to denoise 2020-05-12 09:11:16 +02:00
Ingo Weyrich
8581799a7a make ipwavelets.cc cppcheck clean 2020-05-11 22:33:43 +02:00
Ingo Weyrich
e09ab88c1c Merge branch 'dev' into wavtm 2020-05-11 13:35:58 +02:00
Desmis
b5af6eec60 Fixed crash when use extra 2020-05-09 19:57:39 +02:00
Ingo Weyrich
5bbf312874
Merge pull request #5742 from Beep6581/no-math-errno
Do not set math errno
2020-05-08 14:03:46 +02:00
Ingo Weyrich
8c851a1b3f Also tweak CMAKE_C_FLAGS, fixes #5742 2020-05-08 14:02:40 +02:00
Ingo Weyrich
988d3a1a0d Do not set math errno 2020-05-07 15:26:10 +02:00
Laurent Pinchart
cec7908429 rtexif: Fix conversion from RATIONAL to int, double or string
RATIONAL tags are defined as a ratio of two LONG, themselves defined as
32-bit unsigned integers. The value is misinterpreted when converting to
an int, double or string, as the numerator and the denominator are
interpreted as signed values. The problem has been noticed with the
ExposureTime tag generated by libtiff, which sets the denominator to
0xffffffff for exposure times lower than 1. Fix it.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2020-05-03 17:14:04 +03:00
Thanatomanic
1beb3c91b4
Adjust white-point for Nikon COOLPIX P1000. Fixes #5734 2020-04-27 18:13:47 +02:00
Thanatomanic
276ae214f2 Merge branch 'dev' of https://github.com/Beep6581/RawTherapee into dev 2020-04-23 10:12:49 +02:00
Thanatomanic
687217a6af Brighten the diagonal line in curves, tone down the gridlines. Fixes #5687. 2020-04-23 10:10:42 +02:00
Ingo Weyrich
d165a08e36 revert a801d76, fixes #5716 2020-04-20 13:43:08 +02:00
Desmis
a70691caf1 Enabled Toning excluded colors - to test 2020-04-16 10:57:52 +02:00
Desmis
c46eb29875 Improve toning level (disabled) - add information verbose 2020-04-16 08:43:25 +02:00
Desmis
a481b18e94 Save provisory work on toning 2020-04-15 15:37:13 +02:00
Desmis
b0f73d7cd3 Wavelet - added damper to directionnal contrast 2020-04-15 08:48:18 +02:00
Desmis
feb2c7c77f Improve GUI final Touchup 2020-04-14 16:20:15 +02:00
Desmis
ad207e003c Wavelet Improve Chroma with link contrast levels 2020-04-14 13:08:02 +02:00
Desmis
62fd0a0401 Wavelet - Add colored left bar to toning curve 2020-04-14 10:18:10 +02:00
Desmis
cb700cc676 Fixed bad behavior blur levels damper 2020-04-14 09:38:05 +02:00
Desmis
e3c802f610 Wavelet levels - Fixed bad behavior edge sharpness with damper 2020-04-14 09:11:32 +02:00
Desmis
2c3c658171 Wavelet - added meanab sigmaab damper to chroma -Fixed bug in toning 2020-04-14 08:36:51 +02:00
Desmis
6db96ed88e merge with dev 2020-04-13 18:00:27 +02:00
Desmis
25513c85bc Improve toning with meanab sigmaab and damper 2020-04-13 17:52:56 +02:00
rom9
22eee9787e
Film negative stable multipliers (#5485)
* Added new feature to calculate channel multipliers from crop area. This also saves the crop area channel medians to the processing profiles, in order to get a more consistent color balance when batch-applying the same profile to multiple pictures from the same film roll.

* Fixed wrong initialization of array, and missing check for the result of `getFilmNegativeMedians()`.
Moved `ImProcCoordinator::translateCoord()` from private member to anonymous namespace.
Fixed some whitespace and formatting issues.

* Fixed some formatting issues

* Passed `ipf` parameter as const in `translateCoord`.
Narrowed `using namespace` to single class `Coord2D`.

* Added `scaleGain` entry to thumbnail metadata file, to make `scale_mul` multipliers available in thumbnail processing phase. This simplifies multiplier calculations, so that "faking" thumbnail multipliers in the main image processing is not necessary anymore. This way, output values are immune to slight variations of multipliers between successive shots taken with in-camera AWB turned on.
Shifted multipliers so that the output channel medians are balanced when "Camera WB" is selected. This way, just computing multipliers from crop and setting "Camera WB" (which is the default) gives a pretty well balanced image as a starting point.

* New channel scaling method, based on a film base color sample instead of crop area channel medians. Channels are scaled so that the converted film base values are equal to 1/512th of the output range (65k). This giver better black levels in the output, and more consistency when batch-processing multiple negatives.
The output is now compensated for a known fixed WB value, so that the film base will appear grey when WB is set to 3500K, Green=1.
Added PPVERSION 347 to preserve backwards compatibility: when a processing profile saved by RT 5.7 is loaded (PPVERSION=346), the new fields are initialized to the special value -1, which will instruct the main processing to follow the old channel scaling behaviour. The old channel scaling multipliers will then be converted to the new film base values so that the resulting image is the same, and the fields will be overwritten as soon as the PP is saved again. This will transparently upgrade the processing profile.
When the new behaviour is used, but the film base values are still unset, they are estimated based on channel medians, excluding a 20% border around the image. This should give a better result out-of-the-box for pictures containing a large film holder.

* Code cleanup from review

* Run astyle on film neg source files

* Fixed automated build failure caused by incompatible libraries on my dev PC.

* Simplified `Thumbnail::processFilmNegative` method signature. There is no need to pass in `rmi`,`gmi`,`bmi` multipliers from the caller, i can do the same with my own internal multipliers.

* Added `FilmNegListener` class to pass estimeted film base values to the GUI after first processing. Removed old `filmBaseValues` instance variable from RawImageSource.

* Code cleanup

* Forgot to set baseValues flag in `PartialPasteDlg::applyPaste`
Fixed `filmBaseValuesLabel` not updating when reading zero baseValues. Normally not needed (the label is updated later by the listener), but when the user is browsing through pictures the listener won't fire, so the label must be updated to show values are unset.

* Overwritten channel scaling multipliers by calling `get_colorsCoeff` with `forceAutoWB=false`.
Initially, in `RawImageSource::load`, channels are auto-balanced by averaging the whole picture when computing multipliers.
This can give different multipliers for multiple shots of the same camera, which will lead to inconsistent conversions when batch-processing multiple negatives.
This commit re-sets `scale_mul`, `ref_pre_mul`, etc., in order to "undo" the auto-WB and use the normal camera multipliers.

* Found an easier way to get stable overall multipliers, removed the (horrible) on-the-fly mutation of scaling instance variables.
2020-04-13 17:20:56 +02:00
Desmis
3f2959908c merge with dev 2020-04-13 14:18:12 +02:00
Ingo Weyrich
996ba0a9a3 Partial decoding or wrong dimensions of X-T30 files, fixes #5709, code taken from ART 2020-04-13 13:31:06 +02:00
Desmis
cb36e0130e merge with dev 2020-04-13 12:26:45 +02:00
Thanatomanic
9cc744b1f6 Reset all options in crop. Fixes #5138 and #5045 2020-04-13 11:40:28 +02:00
Desmis
71da91c85f Wavelet levels - Added Damper to local contrast final 2020-04-13 09:04:38 +02:00
Desmis
60bb7b520b Wavelet - Fixed crash when blur residual high and zoom high 2020-04-12 14:08:06 +02:00
Desmis
c2fae0ce87 Change sensitivity sliders wavelet levels denoise 2020-04-10 09:20:31 +02:00
Desmis
1c63d75399
Merge pull request #5702 from Beep6581/wavtm
Wavelet - added chrominance denoise to wavelet levels
2020-04-08 09:01:03 +02:00
Desmis
4c0013b461 Wavelet final - Change guidefilter parameters 2020-04-08 07:42:17 +02:00