Swap the default x y coordinate system of Opencv
<p>I know that the default coordinate system of Opencv is as follows:
<a href="https://i.stack.imgur.com/MunFh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MunFh.png" alt="enter image description here"></a></p>

<p>My question is 
Is there a way (opencv's function) to swap the default x and y axes such that the x axis is the vertical line and the y axis is the horizon line. So I can calculate the geometric transformation matrices based on this new coordinate system?</p>

<p>Thank you!</p>