2015-10-08 21:13:00 -0600 | received badge | ● Necromancer (source) |
2015-09-18 08:19:59 -0600 | received badge | ● Enthusiast |
2015-09-10 13:23:46 -0600 | received badge | ● Editor (source) |
2015-09-10 13:22:16 -0600 | answered a question | OCV3 replacing static CV_IMPLEMENT_QSORT( icvSortDistances, int, CV_LT ) I suspect it was removed because C++ has long had the same functionality in std::sort. For the use shown, add (if not already there) and replace the macro with If you want to use the 'aux' parameter (passing info in to the compare) with std::sort, you need to define a little class with a method Likewise if you want to sort e.g. floats in decreasing abs. value, you can make a little empty class with just the appropriate |