I currently have a set of intrinsic / extrinsic camera parameters, and am using them to project 3D world coordinates to the 2D image, using projection matrix $P = K[R | t]$.
My problem is that this projects them onto the horizontal image, however I want the image to be in portrait. I can easily just rotate the image after projection, but I want to manually rotate all the images to portrait beforehand and alter the projection matrix so that it can project directly to the portrait image.
I've tried the technique from this post, swapping the focal lengths and adjusting the principal point, however that did not seem to give the desired affect. Do I also need to apply a transformation to the extrinsic matrix?