The perimeter of objects can be determined along both the contour and along a convex shell. Here, the edge detection of the objects within an image plays a major role. The edges are determined by color or gray value gradients. The outlines of an object can also be irregularly shaped.
An object can be many things here, from a single cell to the leaf of a plant to wood pellets.