TriedTried with threshold of 320, 800, and getting too light and too heavy respectively. will try with 240, 1000 next time. Will try to add another switch to output grayscale, for debugging. Grayscale will be as before, switch[7] will be used for switching between sobel_5 and sobel_3