Commit 0507e168 authored by Patrick Snape's avatar Patrick Snape

Remove the round method

This was already fixed here:
https://github.com/patricksnape/opencv_contrib/commit/8247a7a0f59ba6c1fcfbac6a660db3f8acdc9ff8

Now uses cvround
parent c8986b13
...@@ -53,19 +53,6 @@ ...@@ -53,19 +53,6 @@
#include <fstream> #include <fstream>
#include <stdlib.h> #include <stdlib.h>
#ifdef _MSC_VER
#if (_MSC_VER <= 1700)
/* This function rounds x to the nearest integer, but rounds halfway cases away from zero. */
static inline double round(double x)
{
if (x < 0.0)
return ceil(x - 0.5);
else
return floor(x + 0.5);
}
#endif
#endif
namespace cv namespace cv
{ {
namespace xfeatures2d namespace xfeatures2d
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment