Browse Source

v0.7.13 修改sc_grab_offset不起作用的bug

chenhongjiang 1 year ago
parent
commit
5dd65cb593
4 changed files with 7 additions and 6 deletions
  1. 2 1
      ReadMe.txt
  2. 3 3
      gcv_conf.yml
  3. 1 1
      grab_point_rs.cpp
  4. 1 1
      graft_cv_api.cpp

+ 2 - 1
ReadMe.txt

@@ -97,4 +97,5 @@ v0.7.8 
 v0.7.9 修改接穗抓点靠上一点,增加了grab_offset,用来在找到茎节后的上下偏移得到抓取点,+值向上偏,-值向下偏
 v0.7.10 增加茎节点位置绘制输出;茎节判别仅按dx方向大小判断(dz误差较大)
 v0.7.11 增加棋盘格识别,用于标定辅助
-v0.7.12 增加茎节peakfind功能
+v0.7.12 增加茎节peakfind功能
+v0.7.13 修改sc_grab_offset不起作用的bug

+ 3 - 3
gcv_conf.yml

@@ -79,8 +79,8 @@ conf_parameters:
    rs_grab_offset: -5.0
    sc_grab_xmin: -100
    sc_grab_xmax: 220
-   sc_grab_ymin: -45
-   sc_grab_ymax: 45
+   sc_grab_ymin: -30
+   sc_grab_ymax: 15
    sc_grab_zmin: 300
    sc_grab_zmax: 400
    #sc_grab_xmin: -30
@@ -94,6 +94,6 @@ conf_parameters:
    sc_grab_seedling_dist: 40.0
    sc_grab_stem_min_pts: 45
    sc_grab_ror_ratio: 0.85
-   sc_grab_offset: -5.0
+   sc_grab_offset: -37.0
    
 

+ 1 - 1
grab_point_rs.cpp

@@ -2428,7 +2428,7 @@ void CRootStockGrabPoint::line_filter(
 				max_pos = i;
 			}
 			max_pos_ref = max_pos;
-			max_pos += static_cast<int>(m_cparam.rs_grab_offset);			
+			max_pos += static_cast<int>(m_cparam.sc_grab_offset);			
 		}
 		else{
 			//Õèľ¿ÉÒÔ°´µÍµã

+ 1 - 1
graft_cv_api.cpp

@@ -20,7 +20,7 @@ extern CRITICAL_SECTION g_cs;
 namespace graft_cv
 {
 
-	char *g_version_str = "0.7.12";
+	char *g_version_str = "0.7.13";
 
 	//configure
 	string g_conf_file = "./gcv_conf.yml";