I have a fixed pinhole camera. I aim it a flat panel and take an image. I tilt the flat panel up and take an image. Is there some way to convert the pixels to real-world coordinates, getting rid of the keystoning? What matrix is that.
I tried going from real-world coordinates to pixels using https://www.mathworks.com/help/vision/ref/cameramatrix.html but it throws back not a trapezoid shape but a parallelogram. Does my loaded calibration image need to be directly above the chessboard or what?
Even so, I need to convert from pixels to real-world, so is there a way to invert that 4x3 camera matrix if this is a valid method?
Thanks.