(11-16-2019, 06:14 PM)Ofnuts Wrote: Uploaded a new version. Added feature; define your own mask(s) in a side file. Enjoy.
Ofnuts,
But what if the curve also has points on other RGB channels?
The image shows the configuration of my curve. If I only use the values from line # 9 after Points 34, would it be enough for the mask to represent the curve?
The curve applies to a channel, so normally to a grayscale image with a single channel.
A possible technique
Create the "L" selection
In the channels list:
Add a channel, tick the "initialize from selection" (this works arounf the current bug on channels)
Select the channel and make it visible
Make sure the original L channel is not visible and not selected
In the image Window, start the Curves tool, it applies to the channel
Adjust the curve so that the parts you are interested in remain visible (the rest turns white)
I was trying something impossible a priori.
I should know that masks and channels only work with the Value channel.
It took me a while to understand why my curve generates a mask that is virtually identical to the L-mask (PatDavid-Lights-L).
BTW I learned a lot of new things by following the steps above, Thx Ofnuts.
11-19-2019, 04:37 PM (This post was last modified: 11-19-2019, 04:59 PM by Krikor.)
The script lets you use curves to create our own masks.
But ... would it be possible to create my own masks using the channels I created?
Is there a way to create curves of the desired channels?
- Copy the channel to a layer, scale to 1000px wide
- Take out the pointer dialog, set one coilumn to RGB(%)
- Move your mouse across the layer see where the change points are (with the pointer dialog you can easily tell where/when you hit 0% or 100%.
- Divide x by 1000 to get the X coordinate, and by 100 any of the RGB value to get the Y coordinate, and add to the curve.
(11-19-2019, 05:40 PM)Ofnuts Wrote: Yes, but it's going to be a bit manual:
- Copy the channel to a layer, scale to 1000px wide
- Take out the pointer dialog, set one coilumn to RGB(%)
- Move your mouse across the layer see where the change points are (with the pointer dialog you can easily tell where/when you hit 0% or 100%.
- Divide x by 1000 to get the X coordinate, and by 100 any of the RGB value to get the Y coordinate, and add to the curve.
In Portuguese, we say "this is not my beach" when we are dealing with something that is unfamiliar to us. A bit like "A fish out of water".
But voilà my doubt.
To try to understand better, I used the coordinates of the existing DD and L masks. DD = 0.00 1.00 0.50 0.00 1.00 0.00 L = 0.00 0.00 1.00 1.00
For the DD copy I found:
X = 0 at 0% at the extreme left point;
X = 500 at 0%;
X = 1000 by 100%
What I would create generating points 0.00 0.00 0.50 00 1.00 1.00 (but as seen above in bold is not the case)
For copy L I found:
x = 0 at 100% first point left;
x = 1000 at 0%.
I would then have: 0.00 1.00 1.00 0.00 (equally different from the expected 0.00 0.00 1.00 1.00).
(11-19-2019, 05:40 PM)Ofnuts Wrote: - Move your mouse across the layer see where the change points are (with the pointer dialog you can easily tell where/when you hit 0% or 100%.
- Divide x by 1000 to get the X coordinate, and by 100 any of the RGB value to get the Y coordinate, and add to the curve.
By following these steps, I was able to reproduce the points for the MMM channel.
But for L and DD channels (possibly for others too) it doesn't work.
The 1000x scaled image from the L channel to the points where X changes.