Compute edges of image once based on luminance instead of all 3 channels. This also gives a modest performance improvement of 8%. Measured on intel i9 CPU using a 1920 x 3199 image. Pull Request: https://projects.blender.org/blender/blender/pulls/108858