Ask Your Question

Revision history [back]

How to determine the axis of a prolonged object?

image description

The angle of the line is of primary interest. I know an algorithm for ellipse (will post it here as answer later), but would like to find out what is popular for an arbitrary shape. Fast methods are preferable for work with video input.