in reply to [OT] Mathematical photographers that program (Perl)? (Updated.)

I think if you can get some more assumptions, there might be a way to infer the distortion by the perspective, and hence the lens structure.

If the below assumptions hold, then an edge detection filter (like a Sobel operator) will give you lots of what should be straight, parallel lines in the Real World but what are imaged as slightly curved lines in the image. That curvature then will likely come from the lens and the midpoint is the central axis.

I'm not sure how much of these rules is easy/enforceable. If this is for images yet to be taken, maybe you can add a grid to the background behind the subjects. If this is for images already taken, maybe you can find the lens characteristics somewhere. For example panorama stitchers solve a similar problem, deconvoluting images back into rectangular shape.

  • Comment on Re: [OT] Mathematical photographers that program (Perl)?