Opencv实现简单功能
1、利用数组中的数生成像素点。std::vector<cv::Point> mypattern;std::vector<cv::Point> mypattern2;static int bit[10] ={25,5,25,12,22,17,0,5,1,12};const Point* pattern1 = (const Point*)bit;std::copy(pattern1, pattern1 + 3, std::back_insert