Hi,
I'm currently trying to implement my own Sobel operator and I'm using the OpenCV operator as reference. From what I can see, most edges I find are the same, but some of them go over 255 which causes an overflow of the uint8 type. I've tried setting those gradients to 255 and scaling the values to 0-255, but the result still isn't there.
An example below:
My Sobel operator with overflowing gradients set to 255
My Sobel operator with values scaled to 0-255
I would be very grateful for any tips and tricks.