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?
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.
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. :-)