|
@@ -105,6 +105,7 @@ namespace graft_cv{
|
|
|
<< "rs_grab_y_opt" << m_cparam->rs_grab_y_opt
|
|
|
<< "rs_grab_seedling_dist" << m_cparam->rs_grab_seedling_dist
|
|
|
<< "rs_grab_stem_min_pts" << m_cparam->rs_grab_stem_min_pts
|
|
|
+ << "rs_grab_voxel_size" << m_cparam->rs_grab_voxel_size
|
|
|
|
|
|
<< "sc_grab_xmin" << m_cparam->sc_grab_xmin
|
|
|
<< "sc_grab_xmax" << m_cparam->sc_grab_xmax
|
|
@@ -116,6 +117,7 @@ namespace graft_cv{
|
|
|
<< "sc_grab_y_opt" << m_cparam->sc_grab_y_opt
|
|
|
<< "sc_grab_seedling_dist" << m_cparam->sc_grab_seedling_dist
|
|
|
<< "sc_grab_stem_min_pts" << m_cparam->sc_grab_stem_min_pts
|
|
|
+ << "sc_grab_voxel_size" << m_cparam->sc_grab_voxel_size
|
|
|
<< "}";
|
|
|
};
|
|
|
void CGCvConfig::read(const cv::FileNode& node){ //Read serialization for this class
|
|
@@ -203,7 +205,8 @@ namespace graft_cv{
|
|
|
m_cparam->rs_grab_stem_diameter = (double)node["rs_grab_stem_diameter"];
|
|
|
m_cparam->rs_grab_y_opt = (double)node["rs_grab_y_opt"];
|
|
|
m_cparam->rs_grab_seedling_dist = (double)node["rs_grab_seedling_dist"];
|
|
|
- m_cparam->rs_grab_stem_min_pts = (double)node["rs_grab_stem_min_pts"];
|
|
|
+ m_cparam->rs_grab_stem_min_pts = (int)node["rs_grab_stem_min_pts"];
|
|
|
+ m_cparam->rs_grab_voxel_size = (double)node["rs_grab_voxel_size"];
|
|
|
|
|
|
m_cparam->sc_grab_xmin = (double)node["sc_grab_xmin"];
|
|
|
m_cparam->sc_grab_xmax = (double)node["sc_grab_xmax"];
|
|
@@ -214,7 +217,8 @@ namespace graft_cv{
|
|
|
m_cparam->sc_grab_stem_diameter = (double)node["sc_grab_stem_diameter"];
|
|
|
m_cparam->sc_grab_y_opt = (double)node["sc_grab_y_opt"];
|
|
|
m_cparam->sc_grab_seedling_dist = (double)node["sc_grab_seedling_dist"];
|
|
|
- m_cparam->sc_grab_stem_min_pts = (double)node["sc_grab_stem_min_pts"];
|
|
|
+ m_cparam->sc_grab_stem_min_pts = (int)node["sc_grab_stem_min_pts"];
|
|
|
+ m_cparam->sc_grab_voxel_size = (double)node["sc_grab_voxel_size"];
|
|
|
}
|
|
|
string get_cparam_info(ConfigParam*m_cparam)
|
|
|
{
|
|
@@ -308,6 +312,7 @@ namespace graft_cv{
|
|
|
<< "rs_grab_y_opt:\t" << m_cparam->rs_grab_y_opt << endl
|
|
|
<< "rs_grab_seedling_dist:\t" << m_cparam->rs_grab_seedling_dist << endl
|
|
|
<< "rs_grab_stem_min_pts:\t" << m_cparam->rs_grab_stem_min_pts << endl
|
|
|
+ << "rs_grab_voxel_size:\t" << m_cparam->rs_grab_voxel_size << endl
|
|
|
|
|
|
|
|
|
<< "sc_grab_xmin:\t" << m_cparam->sc_grab_xmin << endl
|
|
@@ -320,6 +325,7 @@ namespace graft_cv{
|
|
|
<< "sc_grab_y_opt:\t" << m_cparam->sc_grab_y_opt << endl
|
|
|
<< "sc_grab_seedling_dist:\t" << m_cparam->sc_grab_seedling_dist << endl
|
|
|
<< "sc_grab_stem_min_pts:\t" << m_cparam->sc_grab_stem_min_pts << endl
|
|
|
+ << "sc_grab_voxel_size:\t" << m_cparam->sc_grab_voxel_size << endl
|
|
|
<< "}" << endl;
|
|
|
return buff.str();
|
|
|
}
|