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 )

attached pictures about results :
1 both successful

2 my change is successful

3 my change is failed

**thanks in advance**
↧