Quantcast
Channel: OKWAVE 最新質問([技術者向] コンピューター/205)【本日】
Viewing all articles
Browse latest Browse all 38062

輪郭線の座標の取得方法を教えてください。

$
0
0
OpenCVを用いて画像bin_img(グレー画像 gray_img)から、輪郭線(contours)を取得したのですが、 この輪郭線の座標の取得・表示方法がわかりません。 //輪郭線 保存   std::vector<std::vector<cv::Point> > contours; // 画像の二値化 cv::threshold(gray_img, bin_img, 0, 255, cv::THRESH_BINARY|cv::THRESH_OTSU); // 輪郭の検出 cv::findContours(bin_img, contours, CV_RETR_LIST, CV_CHAIN_APPROX_NONE); 上記のアルゴリズムから、表示方法を知っている方がいれば、どうか教えていただけないでしょうか。

Viewing all articles
Browse latest Browse all 38062

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>