I've been working on a tool to turn photos of graphs into digital data (I know there are already tools out there, I wanted to understand the mechanism and I find learning by doing the easiest), but I cannot get my head around the maths involved.
I've had a bit of a read and I think I understand the matrix stuff involved in affine transformations, but I seem to be at a bit of a roadblock with projections, which is what I think I need (but could be wrong there too).
I've got the following image and I know the pixel coordinates of the axes (red) and the data that I want to extract (blue). I also, obviously, know the axis limits that I need to transform the data to.
What I cannot work out at all is how to do that transformation! If anyone has any advice for how to understand how to get from the projected image to an un-projected set of data I would be massively appreciative.