Mat RecogImg;
double MaxScore=GetMaxScore(pFaceFea1, feature,RecogImg);
DrawMat(RecogImg, m_hWnd, IDC_STATIC_RECOGNIZE); (出错,画不出来)??
调用函数:
double GetMaxScore(unsigned char *pFaceFea1, vector<vector<unsigned char>> m_feature, Mat RecogImg)
{。。。。}
为什么别人调用函数时里面传递的参数调用后可以直接用,我的RecogImg不能用???
因为别人传递的是指针!!!!!!!!
改成引用传递的形式:
double GetMaxScore(unsigned char *pFaceFea1, vector<vector<unsigned char>> m_feature, Mat &RecogImg)
{。。。。}
理论学了那么多没有,实际操作要会用啊!编程要加强!!