-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added a color finder tool #15707
base: master
Are you sure you want to change the base?
Added a color finder tool #15707
Conversation
48798c9
to
35e3ecc
Compare
On Windows the CI reports:
I have not checked the macOS failure. |
Same failure on macOS |
@geraldgattringer You should #include <stdint.h>, not <bits/stdint-uintn.h> |
If I'm not mistaken, this is the kind of view one gets when clicking |
This type of visualization, if it were to be implemented, would have to be independent of the way the program works by modules, since this type of visualization is effective for making color corrections, creating harmonies and defining the dominant color in a photograph. Some time ago I did some tests using the same watermark module by placing a gray plane at 18% on top and blending the layer by luminosity. Of course, this is of no use when the watermarks are practically at the end of the pipe, unless the order of the modules is changed to a custom one. This is the example. I also checked a video where a good explanation of the use of this method was given, but applied to Photoshop, as Joanna Kustra does. This is the link to the video I am talking about. https://www.youtube.com/watch?v=lnbPL4CvFvs In a way this way of visualization is related to the post related to false color, which is also used among other things to adjust skin tones, exposure, etc. #15486 |
@difrkaguilar The current implementation sits on top of the image pipe (so it is no a module) and applies the transformation just before an image is displayed. This is similar to the way the focus peaking view is implemented. Currently the transformation is performed in HSV color space. |
Nice to know that. Hope to test it soon. Thanks. |
I just pushed a commit which changes this tool's working color space from HSV to a luma based one. As this is a visual tool I think the change from value to luma is justified. Also in darktable.c in the button/slider callbacks i switched from dt_dev_reprocess_center() to dt_control_queue_redraw_center(). As this tool does not make changes to the pipe and consequently there is no need for making the cache obsolte. Effectively this change makes it way more responsive. This change could probably also be made to the focus peaking tool. @difrkaguilar I like that the color palette is displayed in on of issue #15486's examples. Maybe it could be useful to add the color palette of the currently displayed image. Perhaps next to the vectorscope.. I'll try to make a prototype. |
@geraldgattringer : This is still marked as Draft, what the status? Do you plan on finalizing this? |
Yes! I'll try to finish it by the end of this week. |
@geraldgattringer : The feature freeze is on May 15th. Do you think you can finalize it by then or should I postpone for 5.0? Let me know, thanks! |
Moving to 5.0 as we are now in feature freeze for 4.8. |
Hi!
I have recently watched the fantastic video "Secrets of color-grading in photography" by Joanna Kustra (https://youtu.be/mC8ol2-V7Ck?feature=shared&t=3938) and noticed that around 1:05:38 she applies this neat trick to view only color without shades by luminosity blending the image with a neutral grey layer.
I reproduced this functionality in Darktable by adding a "color balance rgb" instance where the global saturation is set to 0 and the blend mode to divide.
To make this a bit more convinient I have added this functionality in a more convinient way through the press of a button next to the focus peaking, clipping overlay, etc. The target value and saturation amplification are settable with a right-click context menu similar to other overlays.
Why is this useful?
Sometimes (for example during creative color-grading) I find some hues in the vectorscope strike my interest ("Where exactly is this shade of purple..?"). Instead of hunting around with the color picket to find those hues, with this addition they can be found with the press of a button. The elimination of shades and reduction of the image to saturation and hue makes this process very easy.
It is also helpful when correcting color casts in shadows, defrinding, ..
Some comparison imges: