OpenCVSharp4で輪郭検出
輪郭検出とは
cannyなどで検出したエッジから、輪郭(ループ)を取り出すこと。
OpenCVのCv2.FindContours()
では輪郭同士の包含関係も取り出せる
プログラム
参考
http://labs.eecs.tottori-u.ac.jp/sd/Member/oyamada/OpenCV/html/py_tutorials/py_imgproc/py_contours/py_contours_hierarchy/py_contours_hierarchy.html
https://docs.opencv.org/4.0.0/df/d0d/tutorial_find_contours.html