Commit Graph

5170 Commits

Author SHA1 Message Date
Lawrence37
98136d3738 Merge pull request #7235 from Lawrence37/fftw-blur-radius-fix
FFTW blur radius fix
2024-11-24 16:10:38 -08:00
Desmis
b73840cf3c Gamut compression - reduce artifacts resulting from out of gamut (#7205)
* First functions needs for ACES

* New file GUI compressgamut

* GUI first step

* GUI first step

* Gui step 2

* GUI procparams and paramsedit

* GUI read

* GUI step 4

* GUI step 5

* First tooltip

* Gamut compression tooltips

* Various GUI improvment

* History msg

* Comment code with Aces remarks

* First change improccoordinator and events

* Save work on matrix

* Compress gamut next work

* First try gamut compress

* Replace cout by printf in invertmatrix

* Change tooltips and events

* Added namespace std to iplab2rgb

* Comment code

* Active rtthumbnail

* Change tooltip

* Various improvment GUI and rolloff

* Added adobeRGB gamut

* Appimage windows yml

* Remove rttumbnail gamutcompr

* Change event to COMPR

* Change tooltip and verbose

* Restore raw de-haze history message

* Refactor ACES gamut compression functions

* Fix gamut compression color space history message

Correctly display the color space name.

* Add "unchanged" for gamut compression color space

Allow "unchanged" in batch mode.

* Fix gamut compression yellow distance for batch

* Update copyright for gamut compression GUI

* Fix gamut compression color space names

* Refactor gamut compression code

* Remove comment rtthumnail.cc - Acesp1 default

* Change matrix DCI-P3 - threshold maximum to 1 in GUI and in gamut compression - tooltips

* Change tooltip

* Clean code - change tooltips

* Remove appimage windows yml

---------

Co-authored-by: Lawrence Lee <45837045+Lawrence37@users.noreply.github.com>
2024-11-14 13:08:52 +01:00
Desmis
691fe80896 Revert "Generalized Hyperbolic Stretch in Selective Editing (#7210)" (#7250)
This reverts commit 16db6186dd.
2024-11-14 10:29:29 +01:00
Desmis
16db6186dd Generalized Hyperbolic Stretch in Selective Editing (#7210)
* GHS GUI first step

* GHS GUI first step

* GUI step 3

* Hide show ghsmethod

* Siril functions for ghs

* Init ghs in iplocallab

* ghs step 2

* ghs step 4

* Comment copyright Pixlnsight 2021

* Smooth highlights and tooltips

* Enabled saturation and luminance ghs mode

* First tooltip

* Ghs tooltips

* Remove wrong packstart inverssh

* Change labels and tooltips

* Disabled mask in global and other improvments

* Comment code

* appimage and windows yml ghs

* Change tooltip

* Ghsmethod hue and change tolltips

* Change tooltip

* Inverse Stretch step 1

* Inverse GHS

* GHS tooltips

* Change tooltips

* Change tooltip

* Linear black point

* Small change to blackpoint

* Change tooltip

* Clean and comment code

* forgotten GHS highlight attenuation msg in history

* Comment code with Transformation equations

* Change tooltip

* Wrong default value balck point

* Comment code iplocallab

* Ghs curve step 1

* GHS curve step 2

* Show GHS setting in a Curve Box

* Tooltip for ghs S curve

* Disabled warning in compilation simpleprocess

* Simplified code part 1

* Simplified code GHS graph part 2

* Improve black point with negatives values

* Improve BP and tooltip

* Listener enable only with GHS

* White point for GHS

* Change label and tooltip

* Improve behavior white point and black point

* Link sliders ghs_SP ghs_LP ghs_HP and change code to avoid balck screen

* hide unused button in diagonal curve GHS

* prevents the GHS representation in S from displaying artifacts if ghs-d=0

* Change tooltips

* Improvment and tooltips

* Forgotten tooltip

* Improve GUI GHS S curve - change tooltips

* Set transition gray areas in S curve GHS with values of the RT-spot

* Change label GHS

* setlogscale blackpoint and symmetry

* Set recursive reference enable by default in controlspotpanel

* Change lastlocalCurvesDir Dirghs in locallabtools and options - change labels

* Added in converttonormal ghsMode.. not sure if this is useful

* DIY to make GHS curve work without the choices

* Change RGB calculation with luminance function working profile

* 5 modes GHS method

* Label to show datas clipped Black point and White point

* Various change white point tooltips

* Bad behavior wp bp labels

* Small change to improccordinator call to ghschanged ghsbwchanged

* Set log scale ghs_D

* Hide Graduated filter if GHS enable

* Luminance Lab in ghsmethod

* Lab slope factor step 1

* Slope and Chromaticity GHS improvments

* Fixed bad sqrt line 17477 iplocallab

* Workaround linear GHS - re-enable Graduated filer GHS

* Change limits slope lab factor

* Ghs chromaticity Lab (Lch)

* Improve ghs chromaticity

* Change labels and tooltips Lab chroma

* Slope Lab to 100

* Noise and saturation RGB

* Saturation RGB standard and labels

* Change histogram and navigator panel without gamma when using working profile

* Remove gray in GHS curve

* Local contrast a minima

* Regularization stretch

* Improve Graduated Filter in all cases GHS Color and Light etc.

* Improves nlmeans to reduce noise after GHS

* Change to GF - tooltip Nlmeans

* Added oW oH tW tH etc.

* Added call GF

* tX tY for previewProps

* Comment code GF

* Improve local contrast ghs

* Change norm to norm2

* Improve GUI mode complexity and Lab GHS

* Show values BP WP in GUI

* Labgrid ghs step 1

* Labgrid for simulation GHS - step 2

* More points for Labgrid ghs

* Clean and comment code

* Fixed crash in inverse GHS white point - set to 10 points for GSH simulation

* Change to black point in inverse GHS

* Intilialize simulation with nothing if new spot

* Remove curve GHS - optimize code simulation - improve GUI

* set ghs default - fixed crash is case HP SP LP

* Fixed crash - I hope in inverse GHS

* Simplify WP and BP limits to avoid crash in inverse GHS

* Clean code with ghscurve - ghsshape

* Change tooltips

* Change to D - GUI - comment code

* Simulation with 4 more points

* Best simulation with point 0.05 and 0.95

* Clean code - change for crsah in Inverse GHS

* Show values WP and BP
2024-11-13 08:23:41 +01:00
Lawrence37
bc2fbfad66 Merge pull request #7212 from Lawrence37/canon-burst
Support for images with more than 6 sub-frames
2024-11-08 22:01:58 -08:00
Lawrence Lee
9b16f407aa Fix blur radius when using the Fourier method
Fix the formula, adapt old pp3s, and change the maximum blur radius
where applicable.
2024-10-27 18:45:58 -07:00
Lawrence Lee
eac9cdaa00 Improve Sony Pixel Shift support
Detect images created by make_arq as pixel shift.
Add raw crop for Sony ILCE-7CR pixel shift.
2024-10-07 21:10:16 -07:00
Lawrence Lee
860306dc35 Allow reading more than 6 sub-frames
This allows all images to be read from a Canon burst raw file.

Refactor raw image source to use unique_ptr.
2024-10-06 18:01:40 -07:00
Lawrence37
bce20bbd09 Merge pull request #6576 from SimonSegerblomRex/fix-6575
Fix TileOffsets for DNGs containing one tile
2024-09-27 21:50:54 -07:00
Lawrence37
f8386306c9 Merge pull request #6689 from abrock/defish
De-fish
2024-09-27 21:48:55 -07:00
Lawrence37
1e0265f98c Merge pull request #7183 from Lawrence37/ilme-fx3-black-level-dcraw
Sony SR2SubIFD BlackLevel tag
2024-09-17 21:10:21 -07:00
Desmis
7cdfa941c2 Enable ToneMapping when Cam02 enabled and Ciecam disabled (#7190) 2024-09-17 08:30:11 +02:00
Desmis
348c8e8894 Improve Dehaze for Raw files - Raw black point (#7133)
* Show min raw values in console, #5769

* Speedup

* outsourced calculation of raw min values

* First try GUI

* Improve GUI

* Clean code

* Change behavior GUI

* First step GUI Xtrans

* Second step GUI Xtrans

* Last step X-trans black dehaze

* Appimage and windows yml poordeha

* disabled sliders R G B when dehaze enabled

* Remove idle_register autoblackchanged

* Changes suggested by Lawrence37 to improve double processing

* Remove yml appaimage windows

---------

Co-authored-by: Ingo Weyrich <heckflosse67@gmx.de>
2024-09-17 08:29:21 +02:00
Alexander Brock
d9886b7b5c Make the behaviour of manually-set scale the same as auto-fill scale 2024-09-12 21:26:32 +02:00
Alexander Brock
71c69e07bd Remove dependency of de-fishing on perspective parameter (crop factor) 2024-09-04 00:40:41 +02:00
Alexander Brock
2536e6d112 Merge branch 'dev' of https://github.com/Beep6581/RawTherapee into defish 2024-09-04 00:06:43 +02:00
Lawrence Lee
137dbf3eb1 Support black level of Sony ILME-FX3 with dcraw
Read the black level from the second SR2SubIFD BlackLevel tag.
2024-08-16 21:57:37 -07:00
Desmis
873729fe0f Bad behavior with blackwhite and gamma - after change avoid color shift - issue 7159 (#7165)
* Bad behavior with blackwhite and gamma - after change avoid color shift

* Change with code Lawrence37 - chprov1 sincosval
2024-08-13 07:43:17 +02:00
Desmis
ac185128d3 Wavelet denoise limit window size to avoid crash issue 7146 (#7169)
* Wavelet denoise limit window

* Change limit minimum windows to 128
2024-08-11 07:18:36 +02:00
Alexander Brock
c9d1638ee6 Merge branch 'dev' of https://github.com/Beep6581/RawTherapee into defish 2024-08-09 23:33:01 +02:00
Desmis
79279bc42c Temperature corellation - crash with some 5D mark III - issue 7162 (#7164)
* Bad behavior with blackwhite and gamma - after change avoid color shift

* Fixed crash in itcwb issue 7162

* Appimage and windows yml

* Clean code

* Various suggested changes

* Remove unused code

* Remove appimage and windows yml
2024-08-04 20:07:54 +02:00
Simone Gotti
4b78e16130 FramesData: add missing isDNG initialization.
FramesData isDNG wasn't initialized.

This will randomly cause images to be considered as dng files when the
underlying value is different than 0 since the metadata parsing could
exit before the code that checks for the Exif.Image.DNGVersion tag.
2024-08-03 11:11:15 -07:00
Alexander Brock
494a995d57 Merge branch 'dev' of https://github.com/Beep6581/RawTherapee into defish 2024-07-28 15:30:51 +02:00
Desmis
cc0e941652 Selective editing - modifies the activation of the Laplacian according to the spots with Dehaze (#7122)
* Disable Laplace when others Spot with dehaze

* Disable Laplace when others Spot with dehaze

* appimage and widows yml with drexpos

* Compatibility 5.10 contrast attenuator

* Change control out of boud when using Contrast attenuator

* Comment code

* Comment code

* Comment code and fixed

* Clip original retinex to avoid crash in some cases

* Change tooltip

* Clip only Lapalacian if expose or soft enabled

* Various improvment to avoid crash

* Tonecurve hsv colortoning chmixer not allow negative RGB

* Fattal and black need clip issue 7151

* Disable Fattal

* Clean code

* Disable appimage and windows yml
2024-07-28 07:13:58 +02:00
Alexander Brock
c491a405a4 Add function needsScale() to make sure scale is applied if defish is not active 2024-07-27 15:30:24 +02:00
Alexander Brock
159ebd45e8 Merge branch 'dev' of https://github.com/Beep6581/RawTherapee into defish 2024-07-27 12:41:48 +02:00
Lawrence Lee
aaf91fff8f Add DCPs and camconst.json entries from ART 2024-07-20 17:01:39 -07:00
Alexander Brock
fc78a64066 Move scale option from perspective correction to lens/geometry 2024-07-20 14:56:21 +02:00
Alexander Brock
6d96bfe5cc Merge branch 'dev' of https://github.com/Beep6581/RawTherapee into defish 2024-07-20 00:15:43 +02:00
Lawrence Lee
79aaba1bcb Refactor isDNG flag 2024-07-18 22:22:27 -07:00
Lawrence Lee
bb44729490 Merge branch 'dev' into libraw-copylib 2024-07-18 21:57:57 -07:00
Simone Gotti
7deb2754d1 Add DNG metadata lens correction 2024-07-17 23:08:50 -07:00
Simone Gotti
c589e9d469 Add Panasonic metadata lens correction 2024-07-17 23:08:44 -07:00
Simone Gotti
3189efddce Add Olympus metadata lens correction 2024-07-10 10:39:17 +02:00
Simone Gotti
b570c70f5b Add Fujifilm metadata lens correction 2024-07-10 10:39:17 +02:00
Simone Gotti
27dc084e81 Add Sony metadata lens correction 2024-07-10 10:39:17 +02:00
Simone Gotti
f64ad13363 lensmetadata: add abstract center radius helper class
Add a CenterRadiusMetadataLensCorrection helper class that will be
implemented by vendor specific corrections based on center radius.
2024-07-10 10:39:17 +02:00
Simone Gotti
2b97de233f Add initial metadata lens correction handling 2024-07-08 10:30:51 +02:00
Simone Gotti
5159de89cb imagedata: report if file is DNG 2024-07-08 10:29:43 +02:00
Simone Gotti
b98fa42857 lens profile: report availability of distortion and vignetting
Beside CA, report also distortion and vignetting availability. Rename
is${CORRECTION}Available methods to has${CORRECTION}.
2024-07-08 10:29:43 +02:00
Simone Gotti
dc0e23c82c iptransform: apply distortion and CA correction in a single pass
Some lens profile methods provides a way to correct distortion and CA in
a single step.

When available, applying distortion and CA correction when both enabled
in a single pass is more precise (see lensfun
ApplySubpixelGeometryDistortion doc) since it's usually how the profile
is done. Instead applying the CA correction in a step after distortion
correction could lead to a bit different (also if not always visible)
correction.

This is also required for future lens correction methods (like DNG
WarpRectilinear or corrections based on vendor metadata) that provides
only merged distortion and CA correction in a single pass.
2024-07-08 09:40:36 +02:00
Simone Gotti
55fd4b975e iptransform: move profile based CA with and after distortion
Doing profile based CA as the really first correction in a separate steps is
probably not useful.

Additionally many lens profile (lensfun) and future one provide
functions to do them in a single step with better precision while other
just provide a single step that does both (i.e. DNG WarpRectilinear).

For the above reasons this patch removes the additional pass for CA correction.
This will also improve the perfomance due to less work.
2024-07-08 09:39:23 +02:00
Simone Gotti
363f3cc2a6 iptransform: correct profile based distortion/CA before rotation
Like perspective correction also rotation correction should be applied
after distortion/CA correction.
2024-07-08 09:32:35 +02:00
Lawrence Lee
6da48b933a Handle masked area black level with LibRaw
Copied from ART commit 9a24f2567a452f0ca788f51e88b92b479002b149.
2024-07-05 22:21:46 -07:00
Desmis
89c90774af Selective Editing - compatibility 5.10 - Feather - Log encoding (#7120)
* Fixed pp3 from 5.10 feather and ciecam log encoding

* Fixed 2 wrong typo feather in procparams.cc

* Fixed 2 wrong typo feather in procparams.cc

* Remove unused line in procparams
2024-07-01 09:35:33 +02:00
Lawrence37
cf4be0225a Merge pull request #6483 from Calandracas606/better_ARQ_support
Better ARQ Support
2024-06-30 18:03:44 -07:00
Desmis
819b65af7f Keep values scope from 5.10 Selective Editing - for color & light - shadow/highlight - vibrance #7102 (#7107)
* ppversion 351 and keep valus scope for color and light shadow-highligt vibrance

* Change comment in ppversion.h

* Change procparams for colorscope pp<351

* Remove not used isset
2024-06-30 07:47:55 +02:00
Daniel Martinez
b673154531 Support more ARQ files, 4 and 16 Shot ARQ from ILCE-1 2024-06-26 15:37:36 -04:00
Lawrence37
0bee94e4aa Merge pull request #6997 from Entropy512/fix_demosaiced_dng
Fix regression with demosaiced DNGs caused by 831a9bbd
2024-06-23 16:06:29 -07:00
Lawrence Lee
51277dc7d2 Move function into anonymous namespace 2024-06-23 12:40:51 -07:00