Basic Implementation
For the basic implementation, I kept all parameters at their default values and merely filled in the blanks with the appropriate code.
I used built in Matlab functions when possible.
For the combination of gradient values, I combined Canny and Sobel into one term, averaged the bg and tg values into a second term, scaled the two terms
to range between 0 and 1, and multiplied them for the final pb-lite value.
Pictured below are my filters and masks.
Filters:
Masks:
Performance: