摘要: cn特征 c++实现 vs2015 #include <iostream> #include <opencv2/opencv.hpp> #include <vector> //#include <matio.h> // class cn_feature { public: bool init(std 阅读全文
posted @ 2021-01-18 20:52 快乐码小农 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 假设A为二维矩阵, A(:)/8 得到的一个列向量 img = [8 2*8 3*8;4*8 5*8 6*8]; fprintf('img original: \n'); disp(img); g = img(:)/8; [m,n] = size(g); fprintf('m : %d, n : % 阅读全文
posted @ 2021-01-18 17:55 快乐码小农 阅读(725) 评论(0) 推荐(0) 编辑
摘要: matlab sub2ind利用c语言重写 #include <stdio.h> #include <assert.h> #include <stdlib.h> #include <string.h> #include <time.h> typedef struct _sub2ind_res { u 阅读全文
posted @ 2021-01-18 16:06 快乐码小农 阅读(113) 评论(0) 推荐(0) 编辑