Experiments in optics and image processing

After successfully mating a web cam with my microscopes (http://www.thingiverse.com/thing:216821) and telescope (https://www.youmagine.com/designs/web-cam-adapter-for-meade-telescope-eyepiece), I decided to design and print adapters to mount my Droid Turbo phone on the same scopes (https://www.youmagine.com/designs/microscope-adapter-for-droid-turbo-phone and https://www.youmagine.com/designs/droid-turbo-phone-to-telescope-adapter) so I could shoot higher resolution stills (21 Mp) and 1080p (and even 4k) video.   The telescope adapter fits over a Meade 32mm focal length Super Plössl eyepiece and provides about 47X magnification with the telescope.  I printed a similar adapter for my surgical microscope.

IMG_0995_crop

 

 

 

 

 

 

 

 

 

 

 

 

The telescope adapter firmly grips the phone and the eyepiece.

 

IMG_0993_crop

 

 

 

 

 

 

 

 

 

 

 

 

Initial tests were a little disappointing.  The combination of the phone’s camera and the telescope’s optics has significant pincushion distortion.  The image has only been mirrored L-R and scaled down (original is 21 Mp).  Note the lack of contrast (looking through 1/2 mile of humid air) and the curves in the power line and pole, and even the grass line:

pinch test original

 

 

 

 

 

 

 

 

 

A quick search found that the Gimp has built in transform tools to correct (or create) lens distortion.

 

gimp

 

 

 

 

 

 

 

 

It only took a couple minutes of messing around to get acceptable results.  Here’s the same image with the pincushion distortion corrected (whole image), contrast stretched and white balance corrected (rectangular area).  The pole, power line, and even the grass line now look straight.

pinch test corrected

 

 

 

 

 

 

 

 

 

And here’s the final image with all corrections and cropping applied:

final

 

 

 

 

 

 

 

 

 

 

Next step: photograph known square grids through the microscope and telescope and then create and save some preset corrections to apply with Gimp.

I wonder if something like this exists for video.  Hmmmmm…

 

 

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *