错误 56 error C2665: “std::vector<edge,std::allocator<_Ty>>::vector”: 10 个重载中没有一个可以转换所有参数类型 f:\test\堆\opencv_mfc\opencv_mfc\opencv_mfcview.cpp 3432 1 OpenCV_MFC
错误 57 IntelliSense: 没有与参数列表匹配的构造函数 "std::vector<_Ty, _Alloc>::vector [其中 _Ty=edge, _Alloc=std::allocator<edge>]" 实例
参数类型为: (int, int) f:\test\堆\OpenCV_MFC\OpenCV_MFC\OpenCV_MFCView.cpp 3432 47 OpenCV_MFC
struct edge{
//float w;
double weight_v[8] ;
int width = 0, high = 0, value = 0;
};
void COpenCV_MFCView::On_graph_cut_test()//以两个阈值把图像分割为三个区域
{
COpenCV_MFCDoc* pDoc = GetDocument();
CDC* pDC = GetDC();
int i, j, ii;
Mat srcImg = imread(pDoc->filePath, CV_LOAD_IMAGE_COLOR);//读取图像
cvtColor(srcImg, srcImg, CV_BGR2GRAY);//灰度化
MatShowImg(pDC, srcImg, srcImg.cols, 0);//显示灰度图
int width = srcImg.size().width;
int height = srcImg