OpenCVで2点ABの(x、y)のそれぞれの値の差を求めるコードを書いています。
2点の座標をテキストに表示するところまではできたのですが、そこからがわかりません。
ご教授お願いいたします。
roi_rect.x = max_pt.x; roi_rect.y = max_pt.y; if (j == 0) { std::cout << "A" << std::endl; writing_file << "A " << "(" << max_pt.x << ", " << max_pt.y << ")\n"; } else if (j == 1) { std::cout << "B" << std::endl; writing_file << "B " << "(" << max_pt.x << ", " << max_pt.y << ")\n"; }
回答1件
あなたの回答
tips
プレビュー