Hi all, I have a question about vector convert to mat for examole:
vector<cv::Point> contourA;
vector<vector<cv::Point>> contoursB;
.......
cv::findContours(Mat(contourA),contours,hierarchy, CV_RETR_TREE, CV_CHAIN_APPROX_SIMPLE); //can't work
cv::findContours(Mat(contourB),contours,hierarchy, CV_RETR_TREE, CV_CHAIN_APPROX_SIMPLE); //can work
double area=cv::contourArea(Mat(contourA)); can work
double area=cv::contourArea(Mat(contourB)); can work
is any rule to follow? thanks.