#pragma once #include #include "../Identifier/schema_struct.h" #include template void caculateLocateArea(const cv::Mat& img_rotated, const std::vector matrixs, std::vector& assistLocateArea){ if(matrixs.size()>0) { int oldsize=assistLocateArea.size(); assistLocateArea.resize(assistLocateArea.size()+matrixs.size()); for (int i=0;i pDetector=SurfFeatureDetector::create();// 这里我们用了SURF特征点 pDetector->detect(m_m, assistLocateArea[oldsize+i].locateAreasKeyPoints); Ptr pExtractor = SurfDescriptorExtractor::create(); // 提取SURF描述向量 pExtractor->compute(m_m, assistLocateArea[oldsize+i].locateAreasKeyPoints, assistLocateArea[oldsize+i].locateAreasDescriptor); } } }