Hello together,
In the "One important Matter" section the conversion from 64F to 8U is mentioned. https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_imgproc/py_gradients/py_gradients.html#gradients
It says that the image should be calculated in a 64F image format, which is good. But the conversion with taking the absolute value and then converting it to 8U is wrong in my eyes.
The image should be normalized something like:
min = np.min(sobelx_64f)
sobelx_64f = sobelx64f_-min #to have only positive values
max=np.max(sobelx64f)
div=max/255 #calculate the normalize divisor
sobelx_8u=np.uint8(sobelx_64f/div)
Since I am quite new to image processing, could somebody please validate this?
Thank you Tschokokuki