Cool! Haven't thought yet of getting the mask from "solid" images using the edge detect. Will know now, thanks! Also it's great to hear that the node works well for you and I'm definetly happy to see some test cases. I've tried to organize the node in a way that will allow it to function correctly almost in any case, but there still can be some rough corners. If something doesn't work — just twiddle parameters or post here so I can take a look.
Tip of the day: if your're not happy with the luminance pattern created by the node, tune the random seed to get different result.
Regards,