Commit Graph

4732 Commits

Author SHA1 Message Date
Alexander Brock
f023a90170 Add camera_defish to PerspCorrection::read/write 2023-02-11 23:51:32 +01:00
Alexander Brock
841e2ff26f Add de-fishing to ImProcFunctions::transCoord so the source window is correctly estimated when using de-fishing 2023-02-11 22:53:23 +01:00
Alexander Brock
fb90908cbd Add GUI elements for defish and scale in perspective tool. Doesn't work very good yet. 2023-02-11 20:31:08 +01:00
Alexander Brock
9de5cb9915 Add hard-coded fisheye un-distortion operation for testing / discussion 2023-02-04 00:59:04 +01:00
Desmis
9a245c1acb Avoid Color shift - Gamut and Munsell Review in RT - branch Munsellgamut (#6673)
* Fixed numerous problems with gamut and Munsell in Local adjustments

* change gamut-munsell in lab adjustmnts - gamut in ciecam

* Improve XYZ colorimetry and tooltip

* Change event - format code - change labels tooltips

* Removed avoid_ and avoidmun_

* Removed avoidcolorshift in labcurve

* Push change proposed by Lawrence37 - compatibility with old pp3
2023-01-31 12:32:31 +01:00
Mattia Verga
311f3422fd Add missing include for GCC13 compatibility
Signed-off-by: Mattia Verga <mattia.verga@tiscali.it>
2023-01-25 14:16:19 +01:00
Desmis
7afdfc1e2b Abstract profile - Gamut improvment (#6665)
* Gamut control when the chosen primaries are different from working profile

* Gamut control abstract

* Gamut label and history

* Change to Wx Wz

* Fixed crash if y primaries are set to zero

* Fomated with Astylert ImProcFunctions::workingtrc and Color::primaries_to_xyz

* Fixed black becomes green wit gamt abstract profile

* Harmonize types in color.cc

* Try to fix Multiplication result converted to larger type
2023-01-24 14:29:50 +01:00
Desmis
21afbaf90b CIECAM - Changes such as symmetric works and temperature output makes sense - issue #6656 (#6658)
* changes such as symmetric works and temperature output makes sense

* Comment code

* other Comment code and small change

* Change tint in tooltip temperature

* Improve GUI for tempout and greenout
2023-01-06 06:43:21 +01:00
Desmis
95cede9a1a Color Appearance and lighting : Remove cat02preset and all dependencies issue 5664 (#6585)
* Remove cat02preset and all dependencies issue 5664

* Normalize cmakelist
2023-01-03 07:44:46 +01:00
Lawrence37
57c1822b2c Strict temporary image file permissions (#6358)
* Write temp images to private tmp directory (Linux)

The directory is in /tmp with 700 permissions.

* Reduce temp image file permissions in Linux

Set temporary image file permissions to read/write for the user only.

* Use private tmp directory for temp images in MacOS

* Use private tmp directory for temp images Windows

* Use GLib to create temporary directories

* Reuse temp directory if possible
2023-01-02 21:32:15 +01:00
Ingo Weyrich
8d29d361a8 Support dnggainmap (embedded correction) for Bayer files (#6382)
* dng gainmap support, #6379
* dng GainMap: control sensitivity of checkbox, #6379
* dng GainMap: partial paste
* dng GainMap: moved isGainMapSupported() from dcraw.h to dcraw.cc
* RawImageSource::applyDngGainMap: small speedup
* Change GUI to separate gainmap from other flat-field; also reorder checkbox

Co-authored-by: Thanatomanic <6567747+Thanatomanic@users.noreply.github.com>
2023-01-02 21:30:06 +01:00
Niklas Haas
2101b846c3 Implement file sorting in thumbnail view (#6449)
* Use mtime as fallback timestamp for files without EXIF data

As suggested in #6449, with date-based sorting it can be useful to have
at least *some* sort of time-relevant information for EXIF-less files,
to prevent them from falling back to getting sorted alphabetically all
the time.

This commit simply defaults the file timestamp to the file's mtime as
returned by g_stat. For annoying reasons, it doesn't suffice to merely
forward the timestamp to the FileData structs - we also need to keep
track of it inside FilesData to cover the case of a file with 0 frames
in it.

* Add DateTime to Thumbnail

Putting it here facilitate easier sorting without having to re-construct
the DateTime on every comparison.

To simplify things moving forwards, use the Glib::DateTime struct right
away. This struct also contains timezone information, but we don't
currently care about timezone - so just use the local timezone as the
best approximation. (Nothing currently depends on getting the timezone
right, anyway)

In addition to the above, this commit also changes the logic to allow
generating datetime strings even for files with missing EXIF (which
makes sense as a result of the previous commit allowing the use of mtime
instead).

* Implement file sorting in thumbnail view

For simplicity, I decided to only implement the attributes that I could
verily easily reach from the existing metadata exported by Thumbnail.
Ideally, I would also like to be able to sort by "last modified" but I'm
not sure of the best way to reach this from this place in the code.

It's worth pointing out that, with the current implementation, the list
will not dynamically re-sort itself until you re-select the sorting
method - even if you make changes to the files that would otherwise
affect the sorting (e.g. changing the rank while sorting by rank). One
might even call this a feature, not a bug, since it prevents thumbnails
from moving around while you're trying to re-label them. You can always
re-select "sort by ..." from the context menu to force a re-sort.

Fixes #3317

Co-authored-by: Thanatomanic <6567747+Thanatomanic@users.noreply.github.com>
2023-01-02 21:27:12 +01:00
Thanatomanic
3423a7ac55 Support for GX680 digital back including DCP (#6655)
* Initial support for GX680 digital back
With help from LibRaw for decoding support.
Estimates for color calibration are very rough...
* Small modification to black level, add DCP
2023-01-02 21:24:15 +01:00
Thanatomanic
21a7c97ede Multiple crop support for ILCE-7S
Fixes #3960
2023-01-01 11:43:54 +01:00
Thanatomanic
a9b8ece335 Add raw crop for EOS R3
Fully fixes #6420
2023-01-01 11:01:48 +01:00
Lawrence37
d74524f2c5 Camconst support for multiple crops (#6473)
Adapted from ART 
Co-authored-by: Alberto Griggio <agriggio@users.noreply.github.com>

* camconst: support for multiple image sizes in raw_crop and masked_areas
* Clean up code after porting raw crop changes
* fixed raw crop for Canon R6 reduced-resolution raws
* Add Canon EOS R5 1.6 crop raw crop & masked areas
2023-01-01 10:50:11 +01:00
Nicolas Turlais
401727fba9 Add filter for Paths to dynamic profiles (#6284)
Work by @nicolas-t 
* Path filter in dynamic profile panel
* Pass filename as a function argument
* Removed unused include
* Clearer translation
2022-12-31 10:51:30 +01:00
Alex Forencich
2c9f5a735d Add raw_crop and masked_areas for Canon EOS R7 and R10 (#6608)
Signed-off-by: Alex Forencich <alex@alexforencich.com>
2022-12-31 08:51:22 +01:00
Morgan Hardwood
bbe4558dff Improvement to dcraw linear_table #6448
Merged on behalf of heckflosse
https://github.com/Beep6581/RawTherapee/pull/6448#issuecomment-1081779513
2022-12-18 03:55:29 +01:00
Beep6581
3713e36937 Merge pull request #6448 from sgotti/dcraw_linear_table_increase_size
dcraw: increase linear table parsing to 65536 values
2022-12-18 03:32:21 +01:00
Lawrence37
9332333a12 Speed up compilation of rtengine/procparams.cc 2022-12-16 23:01:23 -08:00
Desmis
dcd2d3df0e Replace Observer 10 by Observer 2 in most cases - see issue 6639 (#6640)
* Change observer10 to observer2

* Another forgotten change observer 2 10

* Change colortemp.cc in accordance to options Itcwb_stdobserver10
2022-12-11 13:51:44 +01:00
Thanatomanic
7b51a079cd Basic support for Fujifilm X-T5 and X-H2
Closes #6624
2022-12-02 10:03:19 +01:00
Desmis
9b79c241d7 Improves sharp in LA to avoid long processing if user chooses fullimage (#6616) 2022-11-30 19:14:40 +01:00
Morgan Hardwood
3717e6e480 Merge branch 'dev' into release-5.9 2022-11-27 18:54:49 +01:00
Lawrence Lee
255dc13843 Add Lensfun DB lookup fallback directory
Load from the bundled database directory if loading from the configured
location fails.
2022-11-24 17:08:00 -08:00
Desmis
7057a70bab Try to fix bug when using CBDL main and Local Sharpening (#6611)
* Work around to fix bug when using CBDL main and Local Sharpening

* Optimization int replace by bool sharplablocal

* Try to fix bug by using shardamping > 0 in LA
2022-11-21 18:28:56 +01:00
Thanatomanic
11168aa640 Fix black level for Panasonic DC-G90/G95/G99 2022-11-07 09:35:59 +01:00
Lawrence37
2ce5b827c5 Merge pull request #6570 from Lawrence37/canon-white-regression
Canon 1000D White Level Regression Fix
2022-08-30 07:53:03 -07:00
luzpaz
4d1d5d4539 Fix various typos (#6569)
* Fix various typos

* Fix previous commit + add follow-up grammatical fixes
2022-08-30 15:17:43 +02:00
Lawrence37
d838ff352d Remove last row from D5100 raws (#6571)
Avoid decoding the last row which contains corrupt data and causes the
image to become black.

Closes #5654.
2022-08-30 14:49:46 +02:00
Lawrence Lee
70fe0f46f6 Use hard-coded levels for Canon raws
Closes #6559.
2022-08-27 16:41:15 -07:00
Lawrence37
0a55428205 Clean up missing language keys (#6556)
* Clean up some unused code

* Use grid for abstract profile primaries

* Remove blank line from default
2022-08-24 20:23:09 +02:00
GiMo84
4f6273a2bd Fixes reading Dual ISO (Magic Lantern) DNG (#5658) (#6505) 2022-08-21 07:04:14 +02:00
Adrián Kálazi
fd5a77e8c2 Fix missing coefficient for Daylight spectral data (#6484)
* Fix missing coefficient for Daylight spectral data

* Fix incorrect coefficient for Daylight spectral data
2022-08-18 17:03:32 +02:00
Ingo Weyrich
f564394bbc dfmanager cleanup (#6211)
* Turn `DFManager` into a singleton
* PIMPL `DFManager`
* Cleanup namespace usage in `dfmanager.cc`
* Constify `DFManager` interface
* Fix bad `reinterpret_cast` between `std::string` and `Glib::ustring`

Co-authored-by: Flössie <floessie.mail@gmail.com>
Co-authored-by: Thanatomanic <6567747+Thanatomanic@users.noreply.github.com>
2022-08-18 17:00:49 +02:00
Philippe Daouadi
d8320bc8b7 Add Canon EOS R3, R7 and R10 support (#6543) 2022-08-18 16:50:19 +02:00
luzpaz
65db39b9f8 Fix various typos (#6529) 2022-08-18 16:49:26 +02:00
Desmis
0b10a092fd Optimize FFTW (when used) - when full image is selected (#6545)
Co-authored-by: Lawrence Lee <45837045+Lawrence37@users.noreply.github.com>
2022-08-17 07:11:11 +02:00
Andy Dodd
3bfcc66e46 Default strings cleanup, includes:
1 - Obsolete history events removal

Remove history events that are not referenced anywhere in code

Left event 149 despite being unreferenced due to the comment in the code indicating it may return

2 - Orphaned strings removal

HISTOGRAM_TOOLTIP_RAW appears to be an orphan, but this looks strange to me.  Investigation needed

3 - Strings cleanup - remove improperly commented entries

These don't get treated as comments, but at least didn't break anything since
nothing in the code referenced them.

But they will waste translator's time, so delete them
2022-07-22 06:27:02 -04:00
Lawrence Lee
9bde8f18dc Remove Leica M8 camconst entry
Workaround for issue #6498.
2022-06-11 18:44:03 -07:00
Ingo Weyrich
f86a455285 Local adjustments "Exposure compensation" final output incorrect, preview OK, fixes #6493 2022-06-10 18:50:03 +02:00
Desmis
9b837e59b3 Fixes crash in ipwavelet, improve behavior mask when one spot with many tools and mask (#6478) 2022-05-14 05:41:11 +02:00
Desmis
feada4cd0a Local adjustments - Fixed bug with mask enable logencoding issue 6459 (#6465)
* Fixed bug with mask enable logencoding issue 6459

* Fixed another bug with logena
2022-04-28 07:53:33 +02:00
Desmis
b989c271d8 Fixed bug bad behavior Log encoding issue 6459 2022-04-18 13:01:10 +02:00
Thor Nielsen
4e14350708 Add support for reading Canon R6 white balance from CR3. (#6397)
Co-authored-by: Thor Gabelgaard Nielsen <thor@stheno.org>
Co-authored-by: Thanatomanic <6567747+Thanatomanic@users.noreply.github.com>
2022-04-10 10:57:25 +02:00
Lawrence Lee
59a36d8f8a Fix CR3 decoding crash
Fix buffer size.

Closes #6450.
2022-03-28 21:34:29 -07:00
Simone Gotti
ba906af841 dcraw: increase linear table parsing to 65536 values
The dcraw linear_table method limits the max values to 4096.
But 16 bit per channel linear DNGs can provide a LinearizationTable with
65536 entries.

This patch changes the dcraw linear_table method to accept 65536
entries.
2022-03-27 14:34:48 +02:00
Desmis
c45a6105f7 Improvments to LA Sigmoid - LA Log encoding Cam16 and ICC profile creator (#6410)
* Improvment to sigmoid Cam16 and Jz
* Change default parameters contrast sigmoid
* Log encoding Q added to Sigmoid Q - Cam16
* Change DR evaluation for sigmoid
* Change default log encoding cam16 and change tool position options
* DCI-P3 added to Iccprofilecreator
2022-03-26 12:04:21 +01:00
Bezierr
784625b5cc Fix so E-Mount lens names are retrieved (#6437) 2022-03-26 12:02:50 +01:00