When I am comparing the outputs of using the "edge" function in MATLAB to the "Canny" function in OpenCV, I notice that the OpenCV implementation filters out more edges compared to the MATLAB's implementation.
In MATLAB, I use:
>> edge(I, 'canny', [], 2.0)
In OpenCV (C++), I use:
>> cv::Canny(gray_image_smooth, edge, lowThresh, highThresh);
where I have tried to set the low and high thresholds using a manner similar to what is given in the "edge" function.
Best Answer