P
P
Pavel K2016-05-12 15:19:04
C++ / C#
Pavel K, 2016-05-12 15:19:04

Algorithm, how to fit a rectangle into a trapezoid?

Greetings!
With the help of OpenCV I get a lot of points of the figure, I filter it, and I get a trapezoid (that is, the coordinates of 4 vertices), there were no problems with this,
but now I would like to fit a rectangle parallel to the coordinate axes into it.
Tell me, please, is there a ready-made algorithm?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2016-05-12
@PavelK

In general, the problem has no solution. In particular, when the base of the trapezoid is parallel to one of the axes, there are an infinite number of solutions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question