convex hull of connected components
Posted: 2010-03-16T15:14:44-07:00
Does IM compute convex hull of binary images ?
I have many binary images with a single (connected component) object in each image. Is there a way to use IM to determine the convex hull of the foreground object in a binary image and then paint its interior and produce another image with same size as the original but now containing the painted convex hull ? I don't care to know which points form the convex hull, just its filled, binary version. I have been using Matlab regionprops function to do just that but I would rather use IM.
Thanks for any input.
- alosca
I have many binary images with a single (connected component) object in each image. Is there a way to use IM to determine the convex hull of the foreground object in a binary image and then paint its interior and produce another image with same size as the original but now containing the painted convex hull ? I don't care to know which points form the convex hull, just its filled, binary version. I have been using Matlab regionprops function to do just that but I would rather use IM.
Thanks for any input.
- alosca