1 #ifndef __SBCLUSTER_CXX__
2 #define __SBCLUSTER_CXX__
17 _thresh = pset.get<
float> (
"Thresh");
28 if ( clusters.size() )
29 throw larbys(
"This algo can only be executed first in algo chain!");
36 ::cv::dilate(img,sb_img,
40 ::cv::blur(sb_img,sb_img,
44 auto t_value = ::cv::threshold(sb_img,sb_img,
50 std::vector<::cv::Vec4i> cv_hierarchy_v;
51 ctor_v.clear(); cv_hierarchy_v.clear();
53 ::cv::findContours(sb_img,ctor_v,cv_hierarchy_v,
55 CV_CHAIN_APPROX_SIMPLE);