Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
机器学习中常见的做法是让数据集的第一列代表数据点对应行所属的类。
基本上,我有一个 cv::Mat 并且我想有效地创建一个 cv::Mat 包含删除第一列的矩阵。有没有比遍历列和行并用 逐个添加元素更有效的方法mat.at<data_type>(row, col) = elem;?
mat.at<data_type>(row, col) = elem;
请参阅OpenCV 文档中的Mat::operator()。