- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 ?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
>>...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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
A workaround, for NthMaxElement, i'm using sortRadixDescend() method from IPP 9.0 and picking the nth element from sorted output.
Hope that helps someone.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page