I'm trying to use OpenCV 2.0 to take three points, which essentially make up a triangle, in an image. What I'm trying to do with these three points is use them as a reference for skewing. What I'm trying to achieve is best explained with the following image:
Before After
I am guaranteed to have my image in the format above, so I know that the only point that I need to actively pay attention to is the point at which the 90 degree angle is formed.
In short, I'm just trying to skew my image in relation to the position of the point at which the 90 degree angle is formed.
Is there any way that I can do this in OpenCV? (Preferably in C++)