|
@@ -92,6 +92,7 @@ namespace graft_cv{
|
|
|
<< "rs_grab_stem_min_pts" << m_cparam->rs_grab_stem_min_pts
|
|
|
<< "rs_grab_ror_ratio" << m_cparam->rs_grab_ror_ratio
|
|
|
<< "rs_grab_offset" << m_cparam->rs_grab_offset
|
|
|
+ << "rs_grab_fork_th" << m_cparam->rs_grab_fork_th
|
|
|
|
|
|
<< "sc_grab_xmin" << m_cparam->sc_grab_xmin
|
|
|
<< "sc_grab_xmax" << m_cparam->sc_grab_xmax
|
|
@@ -105,6 +106,7 @@ namespace graft_cv{
|
|
|
<< "sc_grab_stem_min_pts" << m_cparam->sc_grab_stem_min_pts
|
|
|
<< "sc_grab_ror_ratio" << m_cparam->sc_grab_ror_ratio
|
|
|
<< "sc_grab_offset" << m_cparam->sc_grab_offset
|
|
|
+ << "sc_grab_fork_th" << m_cparam->sc_grab_fork_th
|
|
|
<< "}";
|
|
|
};
|
|
|
void CGCvConfig::read(const cv::FileNode& node){ //Read serialization for this class
|
|
@@ -182,6 +184,7 @@ namespace graft_cv{
|
|
|
m_cparam->rs_grab_stem_min_pts = (int)node["rs_grab_stem_min_pts"];
|
|
|
m_cparam->rs_grab_ror_ratio = (double)node["rs_grab_ror_ratio"];
|
|
|
m_cparam->rs_grab_offset = (double)node["rs_grab_offset"];
|
|
|
+ m_cparam->rs_grab_fork_th = (double)node["rs_grab_fork_th"];
|
|
|
|
|
|
m_cparam->sc_grab_xmin = (double)node["sc_grab_xmin"];
|
|
|
m_cparam->sc_grab_xmax = (double)node["sc_grab_xmax"];
|
|
@@ -195,6 +198,7 @@ namespace graft_cv{
|
|
|
m_cparam->sc_grab_stem_min_pts = (int)node["sc_grab_stem_min_pts"];
|
|
|
m_cparam->sc_grab_ror_ratio = (double)node["sc_grab_ror_ratio"];
|
|
|
m_cparam->sc_grab_offset = (double)node["sc_grab_offset"];
|
|
|
+ m_cparam->sc_grab_fork_th = (double)node["sc_grab_fork_th"];
|
|
|
}
|
|
|
string get_cparam_info(ConfigParam*m_cparam)
|
|
|
{
|
|
@@ -276,7 +280,7 @@ namespace graft_cv{
|
|
|
<< "rs_grab_stem_min_pts:\t" << m_cparam->rs_grab_stem_min_pts << endl
|
|
|
<< "rs_grab_ror_ratio:\t" << m_cparam->rs_grab_ror_ratio << endl
|
|
|
<< "rs_grab_offset:\t" << m_cparam->rs_grab_offset << endl
|
|
|
-
|
|
|
+ << "rs_grab_fork_th:\t" << m_cparam->rs_grab_fork_th << endl
|
|
|
|
|
|
<< "sc_grab_xmin:\t" << m_cparam->sc_grab_xmin << endl
|
|
|
<< "sc_grab_xmax:\t" << m_cparam->sc_grab_xmax << endl
|
|
@@ -290,6 +294,7 @@ namespace graft_cv{
|
|
|
<< "sc_grab_stem_min_pts:\t" << m_cparam->sc_grab_stem_min_pts << endl
|
|
|
<< "sc_grab_ror_ratio:\t" << m_cparam->sc_grab_ror_ratio << endl
|
|
|
<< "sc_grab_offset:\t" << m_cparam->sc_grab_offset << endl
|
|
|
+ << "sc_grab_fork_th:\t" << m_cparam->sc_grab_fork_th << endl
|
|
|
<< "}" << endl;
|
|
|
return buff.str();
|
|
|
}
|