"Rhett" wrote:
I want to automatically select ALL greys in a layer.
Greys can be any RGB value, where R and G and B differ
no more than (say) 3.
For instance: I want to select both #101013 and #f0f1f0
(but not #101014 or #101410 or #0a1010).
How do I do this?
Since I am exploring LAB at present ;) I suggest you try the following for selecting _all_ greys in an image:
Convert your image to LAB
Set the foreground swatch to 62L 0a 0b
Go to the a channel
Select color range, use fuzzines 5 or smaller
This selects all pixels which contain neither magenta nor green Save selection
Deselect
Go to the b channel
Select color range again.
Now you've selected all pixels which contain neither yellow nor blue Load the alpha channel you created earlier as a selection and set the mode to "intersect"
Now you've selected all pixels which contain no color information at all.
The fuzzines value limits the color tint which falls within your definition of "grey". If you minimize fuzziness you get shades of pure grey exclusively.
The value of 62L worked on both machines on which I tried it. I got it by reading out the value of the a and b channels in a greyscale image converted to LAB.
Peter