出于好奇,我正在尝试运行此存储库:https://github.com/jzeimen/PuzzleSolver/tree/master/PuzzleSolver
当我尝试从PuzzleDisjointSet.cpp运行以下代码行时,Eclipse会抛出标题错误“'MSize'不是cv :: Mat'的成员:
cv::Mat::MSize size_of_a = sets[rep_a].locations.size;
位置的定义如下:
struct forest{
cv::Mat_<int> locations;
cv::Mat_<int> rotations;
int representative;
int id;
};
和集合是森林结构的向量版本。当documentation clearly refutes this时,我主要对为什么会发生这种情况感到困惑。
我相信我包含的头文件是正确的(PuzzleDisjointSet.h包括上述林结构定义以及集合定义。
#include "PuzzleDisjointSet.h"
#include <algorithm>
#include <opencv2/core.hpp>
#include <opencv/cv.h>
#include <opencv2/core/mat.hpp>
出于好奇,我正在尝试运行此存储库:https://github.com/jzeimen/PuzzleSolver/tree/master/PuzzleSolver Eclipse抛出标题错误“无论何时,'MSize'不是cv :: Mat'的成员我尝试运行...
OpenCV版本:4.3.0