1 | initial version |
actually what you are asking it cannot be done to the exact result that you wish. The reason for that is that you are lacking information, and here you can read a nice answer about it. However, choosing arbitrarily destination points I managed for example to obtain the following results which I do not know how close are to your will.
2 | No.2 Revision |
actually what you are asking it cannot be done to the exact result that you wish. The reason for that is that you are lacking information, and here you can read a nice answer about it. However, choosing arbitrarily destination points I managed for example to obtain the following results which I do not know how close are to your will.
3 | No.3 Revision |
actually what you are asking it cannot be done to the exact result that you wish. The reason for that is that you are lacking information, and here you can read a nice answer about it. However, Especially focus on this:
The aspect ratio of the destination rectangle can be chosen arbitrarily. In fact, it is not possible to deduce the "original aspect ratio" of the object in world coordinates, because "this is 2D homography, not 3D".
Thus, choosing arbitrarily destination points I managed for example to obtain the following results which I do not know how close are to your will.