Live data from Hacker News

Converting a fisheye image into a panoramic, spherical or perspective projection

paulbourke.net

21–28 of 28 posts

Re: Converting a fisheye image into a panoramic, spherical or perspective projection

#21
Wow, some of the distortions at the end of the article are really mind bending...

For simpler fisheye and defisheye effects, I wrote this web based tool a few years ago which some may find useful!

https://jywarren.github.io/fisheyegl/example/

Re: Converting a fisheye image into a panoramic, spherical or perspective projection

#22
Back around 2006 I used "panorama tools" to do the same sort of thing. It had this cool feature of being able to work out lens calibration if it had two photos from the same viewpoint but different angles. It did however require careful tagging of reference points on each image.

Re: Converting a fisheye image into a panoramic, spherical or perspective projection

#24
Paul was kind enough to meet with me a few times, probably over a decade ago now, when I was a lost student trying to work out what ideas were worth exploring (I guess I still am).

He showed me some photogramatery work he was working on, I was amazed at how smooth everything was running given the precision and having worked with highly detailed tins and pointclouds myself on that days high end hardware. I asked him what kernel/engine he was using. He casually said it was his own. Which (having done toy ray tracing in C and dabling in openGL) blew my mind but also made me realise it would be absolutely necessary in order to do this kind of work with the type of control he needed. Everything from the ground up.

One of the few academics/researchers I've met who is 100% legit.

Re: Converting a fisheye image into a panoramic, spherical or perspective projection

#25
post #3

Transformations like these have wide applicability. Performing optics in software so to speak, is more flexible and cheaper than grinding lenses and building special cameras. I was charged once, with transforming images for projection onto a sphere through special lenses. I didn't know the lens transform, the manufacturer kept that secret. I did know that the intensity across the spherical surface was of uniform brig…

Hey, that's a nice case study! Could you give me some pointers on where I could start studying about the math involved? Are those topics usually covered by good books on computer graphics?

My goto, which has literally saved me weeks of banging my head against a wall, is:

Schneider, P.J., Eberly, D.H., 2003. Geometric tools for computer graphics, Morgan Kaufmann Publishers

indispensable

Re: Converting a fisheye image into a panoramic, spherical or perspective projection

#27

Back around 2006 I used "panorama tools" to do the same sort of thing. It had this cool feature of being able to work out lens calibration if it had two photos from the same viewpoint but different angles. It did however require careful tagging of reference points on each image.

The logical successor to panorama tools is hugin these days, and yes it is able to perform these transformations very easily. The control point generation can be done automatically now, although I admit it might struggle a little with fisheye images.
Post reply on HN