Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to find dimensions of an object in the image

I want to find the length of an object in the image (image length not the real physical length). My first idea is was to use boundingRect to find the dimensions, but some of the masks I have split in between them so the boundingRect method fails. Can someone suggest me a robust method to find the length of the object in the given mask

Example mask with split: Mask with split