> I'd assume that you select a color and
This is not at all how edge detection works. See https://en.wikipedia.org/wiki/Sobel_operator for a key building block.
This is not at all how edge detection works. See https://en.wikipedia.org/wiki/Sobel_operator for a key building block.
I wasn't aware of this approach. Looks like a reasonable single-pass solution.