Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Was incorrectly assuming all outputs were of cv::Mat types.

Solution was to use std::vector<std::vector<cv::point>> (or std::vector<cv::mat>) for the contours and std::vector<cv::vec4i> for the contour hierarchy.

Was incorrectly assuming all outputs were of cv::Mat types.

Solution was to use std::vector<std::vector<cv::point>> std::vector<std::vector<cv::Point>> (or std::vector<cv::mat>) std::vector<cv::Mat>) for the contours and std::vector<cv::vec4i> std::vector<cv::Vec4i> for the contour hierarchy.