What is the OpenCv equivalent of this Matlab code for sobel edge detection?

asked 2018-04-08 14:03:10 -0500

 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?

edit retag flag offensive close merge delete


Show your code.

sjhalayka gravatar imagesjhalayka ( 2018-04-08 16:14:20 -0500 )edit

What is right results? I haven't got matlab : your code is unuseful. Sobel in opencv it's here

LBerger gravatar imageLBerger ( 2018-04-09 02:20:39 -0500 )edit