Reputation: 36
I'm using Skimage regionprops
to find the center of objects, and then opencv to write text in the middle of the object. However, some of the objects are irregular in shape and the centroid coordinates are outside of the object. How can I get the "center" of the object when it is irregular such that the center is inside the object?
Upvotes: 0
Views: 706
Reputation: 5738
What you are after is called the medoid and currently doesn't exist in scikit-image, though we are interested in adding an implementation.
Note that as of v0.18, regionprops lets you add extra properties, so if you find a good implementation you can start using it straight away.
Upvotes: 1