MATLAB: Sobel Operator no threshold

edgeImage Processing Toolboxsobel operator

I'm using the "edge(img,'sobel')" function but it returns a matrix that is logical. Is there a way to make it a uint8? I want to see it just the filtering.

Best Answer

Don't use edge(). Use imgradient() instead. You will get the actual Sobel filtered image.
Related Question