Use percentage of max derivative value to find edge

Find the percentage of max derivative value, 1020, that you want to
trigger as an edge. Modified sobel to look for edges of 80% (816) or
higher.

ex. 1020 * 0.8 = 816