Sobel edge detection
This node is a 3x3 matrix multiplication kernel set up to use vertical and horizontal Sobel kernels to detect edges. It then processes the edges to amplify the data, allowing the creation of masks as well as neon outlines. I also included a premult and a couple of merge settings.
Original image
Premulted result
Built-in merge over function
Erode and merge externally