src/Pipeline.cpp
void Pipeline::findContours(cv::Mat &input, bool externalOnly, std::vector<std::vector<cv::Point> > &contours) {
		std::vector<cv::Vec4i> hierarchy;
		contours.clear();
		int mode = externalOnly ? cv::RETR_EXTERNAL : cv::RETR_LIST;
		int method = cv::CHAIN_APPROX_SIMPLE;
		cv::findContours(input, contours, hierarchy, mode, method);
	}
/**
	 * Finds contours in an image.
	 *
	 * @param input The image to find contours in.
	 * @param externalOnly if only external contours are to be found.
	 * @param contours vector of contours to put contours in.
	 */
Finds contours in an image.
@param input The image to find contours in.
@param externalOnly if only external contours are to be found.
Finds contours in an image . @param input The image to find contours in . @param externalOnly if only external contours are to be found .
void Pipeline::findContours(cv::Mat &input, bool externalOnly, std::vector<std::vector<cv::Point> > &contours) {
		std::vector<cv::Vec4i> hierarchy;
		contours.clear();
		int mode = externalOnly ? cv::RETR_EXTERNAL : cv::RETR_LIST;
		int method = cv::CHAIN_APPROX_SIMPLE;
		cv::findContours(input, contours, hierarchy, mode, method);
	}
void Pipeline :: findContours ( cv :: Mat & input , bool externalOnly , std :: vector < std :: vector < cv :: Point > > & contours ) { std :: vector < cv :: Vec4i > hierarchy ; contours . clear ( ) ; int mode = externalOnly ? cv :: RETR_EXTERNAL : cv :: RETR_LIST ; int method = cv :: CHAIN_APPROX_SIMPLE ; cv :: findContours ( input , contours , hierarchy , mode , method ) ; }
Finds contours in an image.
Finds contours in an image .