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.
私は中間段階でビデオ処理プロジェクトに取り組んでおり、ある画像の ROI を別の画像の ROI (同じ次元) に置き換える必要があります。そのための組み込み関数はありますか??
Mat::copyToMat インスタンス間で物を転送するために使用できます。
Mat::copyTo
cv::Mat image1, image2; cv::Rect roi1(0, 0, 100, 100); cv::Rect roi2(50, 50, 150, 150); cv::Mat(image2, roi2).copyTo(cv::Mat(image1, roi1));