Image edge smoothing with opencv
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to smooth output image edges using opencv framework, I am trying following steps. Steps took from here https://stackoverflow.com/a/17175381/790842 int lowThreshold = 10.0; int ratio = 3; int kernel_size = 3; Mat src_gray,detected_edges,dst,blurred; /// Convert the image to grayscale cvtColor( result, src_gray, CV_BGR2GRAY ); /// Reduce noise with a kernel 3x3 cv::blur( src_gray, detected_edges, cv::Size(5,5) ); /// Canny detector cv::Canny( detected_edges, detected_edges, lowThreshold, lowThreshold*ratio, kernel_size ); //Works