Yes that’s certainly possible, see for example this post about re-projection
Do you have any information about the maths involved? Otherwise working that out could take a while…
Edit: I should add that a larger/clearer example input image would help!