Ask Your Question

Revision history [back]

just wondered performance comparison of functions and tested.( test code)

about 100M computation results on my computer as below

euclideanDist :      13.1022
distanceBtwPoints :  17.3321 // the function taken from min_enclosing_triangle.cpp
cv::norm :           21.082

just wondered performance comparison of functions and tested.( test code)

about 100M computation comparison results on my computer as below

a : [0, 0] - b : [2.14748e+009, 2.14748e+009]

euclideanDist : 3.037e+009
distanceBtwPoints : 3.037e+009
cv::norm : 3.037e+009

max_distance euclideanDist :      13.1022
3.02456e+009 time passed :8.7467
max_distance distanceBtwPoints :  17.3321 3.02456e+009 time passed :16.8687 // the function taken from min_enclosing_triangle.cpp
max_distance cv::norm :           21.082
3.02456e+009 time passed :19.4353