Hello,
I continue to be suprised at the speed with which the IPPI library performs. Whenever I do something with my own code it looks so slow in comparison.
This is also the case with connected components. I am using the labelmarkers function to great effect to find connected components after binarization. Now I would like to collect statistics on the connected components: Bounding boxes and the number of pixels belonging to the connected components.
At the moment I am simply allocating a vector of num_labels length and then going over the image once to fill in the statistics. However, this takes about half as long as the connected components analysis itself!
As this is in a very time critical path of the application I am looking for ways to accelerate this. Doesn't the connected components analysis already collect these statistics? Is there a way to use the information the labelmarkers function collects in the buffer I pass to it? Or are there better ways to find min/max coordinates (bounding box) and the number of pixels?
Thanks in advance for your help!
Marcus



