- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Marcus,
Not sure if you are still interested in the feature. As this is only request we collect since you submit, IPP developer decide not to implement the feature. I'm sorry for the news. If you really need the feature, you may take the OpenCV source code, where you may add the statistical information manually.
Best Regards,
Ying
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Ying,
thanks for your reply. I saw the new IPP 9.0 Library and noticed that no such feature was implemented. It is ok though, I have written my own code to do the connected component statistics. It is actually a lot faster than using labelmarker and then computing the statistics on top of that.
Best regards,
Marcus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Marcus,
Do you still happen to have the code for statistics?
Best Regards,
Preeth
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page