Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

Need help to fix a bug

$
0
0
hi all, i am trying to fix a bug on [minEnclosingTriangle](https://github.com/Itseez/opencv/issues/4992). I changed [min_enclosing_triangle.cpp line 730](https://github.com/Itseez/opencv/blob/master/modules/imgproc/src/min_enclosing_triangle.cpp#L730) as bool sideCValid = (validationFlag == VALIDATION_SIDES_FLUSH) || (isPointOnLineSegment(midpointSideC, sideCStartVertex, sideCEndVertex)); to test result of this change i compare return values of both current and changed **minEnclosingTriangle** by [bugtest_minEnclosingTriangle.cpp](https://github.com/sturkmen72/opencv_samples/blob/master/bugtest_minEnclosingTriangle.cpp) can someone help me by running [bugtest_minEnclosingTriangle.cpp](https://github.com/sturkmen72/opencv_samples/blob/master/bugtest_minEnclosingTriangle.cpp) **1)** i am working with code:block and wonder results of other compiler. **2)** i have a problem when running bugtest_minEnclosingTriangle.cpp. at last test points my changed code fails. but when i make this change to source of the library and rebuild it works good ( i think i must do something related configuration of my compiler ) EDIT : i found the problem about compiler setting. ( i don't know why i did not check before asking ) ![image description](/upfiles/14417455985145369.png) attached pictures about results : 1 both successful ![image description](/upfiles/14417305957218255.png) 2 my change is successful ![image description](/upfiles/14417306523404474.png) 3 my change is failed ![image description](/upfiles/14417306647743385.png) **thanks in advance**

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>