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.
一个比较简单的问题。我有一个矩阵mask
mask
cv::Mat mask = cv::Mat::zeros(20, 25, CV_8UC1);
和一点pt
pt
cv::Point pt(5,7);
如何访问mask该位置的元素pt(第 5 行和第 7 列)?
char value = mask.at<char>(pt);