
I've found the following code, but it doesn't quite do what I want. How can I do this? Specifically how do I construct the rotation and skew matrices?

I want to do the opposite, I have a top-down image and want to display it with different angles applied to rotation around the image centre and the X-axis (so it looks like I'm viewing the image on the table from a sitting position). Many of the examples I've found (such as ) show you how to take a 2D image that represents a 3D object and convert to a 2D view (e.g.

I want to transform a 2D colour (RGB from OpenCV) image into a 3D image using Python (using OpenCV, PIL, SKImage, etc.).
