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.
2 | No.2 Revision |
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.