diff --git a/beltTearingDetection_test/beltTearingDetection_test.cpp b/beltTearingDetection_test/beltTearingDetection_test.cpp index 4f037d3..04c7b9d 100644 --- a/beltTearingDetection_test/beltTearingDetection_test.cpp +++ b/beltTearingDetection_test/beltTearingDetection_test.cpp @@ -1051,7 +1051,7 @@ int main() }; SVzNLRange fileIdx[TEST_GROUP] = { - {10,24}, {2, 18}, {16,16}, {1,2}, {2,3} }; + {10,24}, {2, 18}, {16,16}, {1,2}, {4,6} }; double camPoseR[9] = { 1.0, 0.0, 0.0, @@ -1071,7 +1071,7 @@ int main() algoParam.tearingMinLen = 30.0; algoParam.tearingMinDepth = 2.0; //对于é�žç©¿é€�型撕裂的检测最å°�深度,用于滤除点云波动形æˆ�的虚å�‡æ’•裂 - algoParam.tearingMinYWidth = 2.0; //撕裂在Yæ–¹å�‘的最大宽度, 用于滤除雨刷è¿�行产生的虚å�‡Gap + algoParam.tearingMinYWidth = 2.0; //撕裂在Yæ–¹å�‘的最å°�宽度, 用于滤除雨刷è¿�行产生的虚å�‡Gap algoParam.tearingMaxYWidth = 150; //撕裂在Yæ–¹å�‘的最大宽度, 用于滤除雨刷è¿�行产生的虚å�‡Gap char _scan_file[256]; diff --git a/sourceCode/beltTearingDetection.cpp b/sourceCode/beltTearingDetection.cpp index 7458fdb..4e130ed 100644 --- a/sourceCode/beltTearingDetection.cpp +++ b/sourceCode/beltTearingDetection.cpp @@ -7,7 +7,8 @@ //version 1.0.0 : Ƥ´øËºÁѰ汾Ìí¼Ó°æ±¾ºÅºóµÄ»ù´¡°æ±¾ //version 1.0.1 : Ìí¼Ó˺ÁÑY·½Ïò×îСºÍ×î´ó¿í¶È£¬ ÒÔ¼°·Ç¹á´©ËºÁÑ×îСÉî¶È£¬ÓÃÓÚÂ˳ýµãÔÆ²¨¶¯ºÍÓêË¢Ô˶¯Ê±²úÉúµÄÐéÄâGap£¨ÖÐÐÅÖØ¹¤£© -std::string m_strVersion = "BeltTearing 1.0.1"; +//version 1.0.2 : Ð޸IJÎÊýtearingMinLenµÄʹÓãºÔ­À´ROI¿í¶ÈºÍ¸ß¶ÈÖ»ÒªÓÐÒ»¸öÂú×ãÃÅÏÞ£¬ÏÖÔÚÐÞ¸ÄΪֻÏÞÖÆ¿í¶È£¨³¤¶È£© +std::string m_strVersion = "BeltTearing 1.0.2"; const char* sg_beltTearingVersion(void) { return m_strVersion.c_str(); @@ -1243,7 +1244,7 @@ void sg_detectBeltTearing( //¼ÆËãROIµÄ³¤¿í double w = beltTearings_unknown[i].roi.right - beltTearings_unknown[i].roi.left; double h = beltTearings_unknown[i].roi.bottom - beltTearings_unknown[i].roi.top; - if ((w >= measureParam.tearingMinLen) || (h >= measureParam.tearingMinLen)) + if (w >= measureParam.tearingMinLen) //version 1.0.2£ºÖ»ÏÞ¿í¶È { int lines = beltTearings_unknown[i].endLineIdx - beltTearings_unknown[i].statLineIdx + 1; SSG_tearProcessInfo* match_procInfo = _getProcInfo(