02-23-2017 05:22 AM
I am porting my code from IPP 6.1 to IPP 9.0. I need to calculate nth max value from a 32F image. As ippsNthMaxElement() from IPP 6.1 is deprecated, I tried writing my own method to get this functionality, but it hampers speed of the code. Is there any better alternative available in IPP 9.0 OR MKL? I want to avoid sorting the elements completely, so is there any method that can allow me to partially sort the elements and get the Nth max element ?
Valued Contributor II
02-23-2017 12:57 PM
>>...I want to avoid sorting the elements completely, so is there any method that can allow me to partially sort the elements and >>get the Nth max element? Try to look at how a Merge Sort algorithm is working. It is a recursive algorithm and during its merging phase it has partially sorted blocks of data. Number of partially sorted blocks of data depends on a current level of recursion.