摘要: _mm256_cvtss_f32函数属于AVX指令集,头文件:#include <immintrin.h> float _mm256_cvtss_f32 (__m256 a) 使用VS2015时,_mm256_cvtss_f32函数报错,错误 C3861 “_mm256_cvtss_f32”: 找不 阅读全文
posted @ 2020-07-09 11:11 盖世猪猪侠 阅读(561) 评论(0) 推荐(0) 编辑
摘要: 常规方法: 1 void SobelAmplitude(Mat &sobelx, Mat &sobely, Mat &SobelXY) { 2 SobelXY = Mat::zeros(sobelx.size(), CV_32FC1); 3 for (int i = 0; i < SobelXY.r 阅读全文
posted @ 2020-06-28 17:30 盖世猪猪侠 阅读(391) 评论(0) 推荐(0) 编辑
摘要: 在ORB算法论文中,并没有对尺度空间如何构建进行描述,但是Opencv内部构建了尺度空间,尺度空间层为8。 当然这都是小问题,不知道你们有没有发现一个问题:若A图像尺度空间第一层上有一点a,与B图像尺度空间第三层上的一点b为同一匹配点,这时该如何匹配? 或者说,该如何画出来?这两层所在尺度不同,进行 阅读全文
posted @ 2020-05-14 11:17 盖世猪猪侠 阅读(834) 评论(0) 推荐(0) 编辑
摘要: #include "opencv2/highgui.hpp" #include "opencv2/imgproc.hpp" #include <iostream> using namespace cv; using namespace std; const int BGR_TO_GRAY_AVERA 阅读全文
posted @ 2020-03-30 16:34 盖世猪猪侠 阅读(238) 评论(0) 推荐(0) 编辑
摘要: INCLUDEPATH += D:\opencv2.4.13\build\include INCLUDEPATH += D:\opencv2.4.13\build\include\opencv INCLUDEPATH += D:\opencv2.4.13\build\include\opencv2 阅读全文
posted @ 2019-09-16 10:16 盖世猪猪侠 阅读(537) 评论(0) 推荐(0) 编辑
摘要: double sum = std::accumulate(std::begin(resultSet), std::end(resultSet), 0.0); double mean = sum / resultSet.size(); //均值 double accum = 0.0; std::for_each (std::begin(resultSet), st... 阅读全文
posted @ 2019-08-14 16:56 盖世猪猪侠 阅读(2785) 评论(0) 推荐(1) 编辑
摘要: /* 由于发过来的数据为16进制,故需要把16进制的数据变为10进制,然后由Mat进行保存 */ static int hex_table[] = { 0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0 阅读全文
posted @ 2019-08-09 13:41 盖世猪猪侠 阅读(800) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std; int main(int argc, char *argv[]) { /* * Step 2 - Get a file name */ string file = "C:\\users\\jared\\testfiles\\smallcapture.p... 阅读全文
posted @ 2019-08-06 20:47 盖世猪猪侠 阅读(973) 评论(0) 推荐(0) 编辑
摘要: #include static int hex_table[] = { 0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0, 0,0,0,0,1,2,3,4,5,6, 7,8,9,0,0,0,0,0,0, 0,10,11,12,13,14,15,0,0, ... 阅读全文
posted @ 2019-08-06 15:45 盖世猪猪侠 阅读(1009) 评论(0) 推荐(0) 编辑
摘要: #define _XKEYCHECK_H #define HAVE_REMOTE #include "pcap.h" #include "remote-ext.h" #include #include #include #pragma comment(lib, "wpcap.lib") #pragma comment(lib, "Ws2_32.lib") using namespace... 阅读全文
posted @ 2019-08-05 14:43 盖世猪猪侠 阅读(875) 评论(0) 推荐(0) 编辑