drawContours()
findContours()などで取得した輪郭を描画する関数。
使い方
基本的なところはopencv.orgにある。
CV_FILLEDってなんだ
opencv.orgにあったソースコードではthicknessにCV_FILLEDが指定されていた。
main.cpp
#include <iostream>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
using namespace std;
int main(int argc, char** argv)
{
std::cout << "CV_FILLED is " << CV_FILLED << std::endl;
}
result
CV_FILLED is -1
CV_FILLEDは-1のことだった。負の数を指定することで塗りつぶしを行っている。