- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am trying to find a quick way to get the coordinates of a pixel in an image with a certain value. (In fact, I want to find pixels with certain bits set, but I can manage the translation.) It feels like it shouldn't be too hard, but I cannot find an elegant way with IPP. Did I miss anything? Am I trying to use the wrong tool for the job?
Thanks!
Koen
I am trying to find a quick way to get the coordinates of a pixel in an image with a certain value. (In fact, I want to find pixels with certain bits set, but I can manage the translation.) It feels like it shouldn't be too hard, but I cannot find an elegant way with IPP. Did I miss anything? Am I trying to use the wrong tool for the job?
Thanks!
Koen
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Koen,
it seems you can try to zero all pixels which do not fit into your specification with logical IPP functions and then with using ippiMinIndx or ippiMaxIndx to extract coordinates of non-zero pixels (which actually only those which conform your specification). This is just an idea, not deeply thought out.
Regards,
Vladimir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Vladimir,
Thanks for the response. I thought about a solution like that, but it seems like it's not a very efficient approach. I will try to test the performance; maybe it suffices.
Would something like a routine that returns the indices of all non-zero pixels (like 'find' in Matlab) be a good extension? I can mimic that with first a compare and then a ippiMaxIndx, but that requires the allocation of an extra buffer. Such a function would probably be more generally useful. I can suggest it to Premier support, unless you can convince me otherwise. :-)
Best,
Koen
Thanks for the response. I thought about a solution like that, but it seems like it's not a very efficient approach. I will try to test the performance; maybe it suffices.
Would something like a routine that returns the indices of all non-zero pixels (like 'find' in Matlab) be a good extension? I can mimic that with first a compare and then a ippiMaxIndx, but that requires the allocation of an extra buffer. Such a function would probably be more generally useful. I can suggest it to Premier support, unless you can convince me otherwise. :-)
Best,
Koen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Koen,
I think we do not have such functionality in single function, so please feel free to submit your request through Intel Premier Support.
Regards,
Vladimir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just created a feature request.
Best,
Koen
Best,
Koen
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