What is the OpenCv equivalent of this Matlab code for sobel edge detection?
e[~, threshold] = edge(I, 'sobel');
fudgeFactor = .5;
BWs = edge(I,'sobel', threshold * fudgeFactor);
figure, imshow(BWs), title('binary gradient mask');
I tried the sobel function in Opencv but I'm not able to get the right results, Could someone please help me with this?
Show your code.
What is right results? I haven't got matlab : your code is unuseful. Sobel in opencv it's here