Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/索贝尔算子(Sobeloperator)主要用作边缘检测,在技术上,它是一离散性差分算子,用来运算图像亮度函数的灰度之近似值。在图像的任何一点使用此算子,将会产生对应的灰度矢量或是其法矢量Sobel卷积因子为:http://blog.csdn.net/goodshot/article/details/10170073http://blog.csdn.net/yanmy2012/article/details/8110316为了加快算法速度:先缩小图像,步长为2,然后计算梯度,void getGrads(unsigned char* g_lpTemp, unsigned char* g_lpDivide, int IMGW, int IMGH, long r){ long x, y, i, j; long vx,&n
...
继续阅读
(29)