incorrect or not (in principle), the second “Rectified” picture looks like it suffers from badly estimated parameters. looks like a homography that is a sideways view of the image plane. the second “plane” (“sandwich” view) is a numerical consequence.
look at all the matrices and whatnot. show them to us. give us something debuggable. words won’t help.