![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
视觉算法
文章平均质量分 62
大熊Ers
falion@outlook.com
展开
-
Deriche 模糊的实现、以及指令集加速方法
具体的实现原理参考: https://en.wikipedia.org/wiki/Deriche_edge_detector (想看原文的找梯子) 首先是C代码部分(opencv下开发) void Deriche(cv::Mat& img, cv::Mat* outimg, double aph) { double alpha = aph; double exalpha = exp(-alpha); double exalpha2 = exp(-2 * alpha); double kr原创 2021-06-27 21:42:56 · 589 阅读 · 1 评论 -
简单视觉算法重写--threshold 阈值
简单视觉算法重写--threshold 阈值 opencv 用的闹心、运行效率太蛋疼。逐步拆分优化 void threshold(cv::Mat& img,cv::Mat& res,int Min,int Max) { //res需在外面分配内存 __m128i min = _mm_set1_epi8(Min); __m128i max = _mm_set1_epi8(Max); __m128i Zero = _mm_setzero_si128(); for (int i = 0;原创 2020-07-07 21:57:24 · 292 阅读 · 0 评论