The Naked Scientists
  • Login
  • Register
  • Podcasts
      • The Naked Scientists
      • eLife
      • Naked Genetics
      • Naked Astronomy
      • In short
      • Naked Neuroscience
      • Ask! The Naked Scientists
      • Question of the Week
      • Archive
      • Video
      • SUBSCRIBE to our Podcasts
  • Articles
      • Science News
      • Features
      • Interviews
      • Answers to Science Questions
  • Get Naked
      • Donate
      • Do an Experiment
      • Science Forum
      • Ask a Question
  • About
      • Meet the team
      • Our Sponsors
      • Site Map
      • Contact us

User menu

  • Login
  • Register
  • Home
  • Help
  • Search
  • Tags
  • Member Map
  • Recent Topics
  • Login
  • Register
  1. Naked Science Forum
  2. General Science
  3. General Science
  4. Is it possible to correct a distorted image and learn its proportions?
« previous next »
  • Print
Pages: [1]   Go Down

Is it possible to correct a distorted image and learn its proportions?

  • 8 Replies
  • 4511 Views
  • 0 Tags

0 Members and 1 Guest are viewing this topic.

Offline Kryptid (OP)

  • Global Moderator
  • Naked Science Forum King!
  • ********
  • 5462
  • Activity:
    44.5%
  • Thanked: 234 times
    • View Profile
Is it possible to correct a distorted image and learn its proportions?
« on: 03/10/2012 02:08:29 »
I'm trying to figure out if there is some way to use geometry, trigonometry, etc. to "flatten" a particular image I am interested in. I don't know what angle the computer screen is at relative to the camera in the photos, but I figure the rectangles on the screen in the images must have corner angles at ninety degrees each.

I actually have two angles of the image:





Can anyone help?
Logged
 



Offline CliffordK

  • Naked Science Forum King!
  • ******
  • 6408
  • Activity:
    0%
  • Thanked: 15 times
  • Site Moderator
    • View Profile
Re: Is it possible to correct a distorted image and learn its proportions?
« Reply #1 on: 03/10/2012 04:13:37 »
If only I could remember a little drafting from High School...  No, not CAD, we had pencils & triangles.

Anyway, it is handy to have boxes around your parts.

If you connect the "parallel" lines in the boxes, you should arrive at a horizontal and a vertical vanishing point.  I presume all the parallel lines would actually hit the same two vanishing points.

All you need to do is to make the non parallel lines parallel.  And, of course, correct the right angles to right angles.

With any luck, your right view and left views will come out the same.
« Last Edit: 03/10/2012 04:18:44 by CliffordK »
Logged
 

Online RD

  • Naked Science Forum GOD!
  • *******
  • 9085
  • Activity:
    13.5%
  • Thanked: 150 times
    • View Profile
Re: Is it possible to correct a distorted image and learn its proportions?
« Reply #2 on: 03/10/2012 11:55:38 »
I did this using GIMP, but by eye so I wouldn't bet your life it's accurate* ...

 [ Invalid Attachment ]

 [ Invalid Attachment ]

YouTube tutorial on perspective correction in GIMP ...

[* The camera lens has added some radial distortion which I haven't attempted to remove ].

* squarish - top secret plan.jpg (42.21 kB, 339x283 - viewed 810 times.)

* squarish -plan #2.jpg (28.14 kB, 232x173 - viewed 820 times.)
« Last Edit: 03/10/2012 12:29:18 by RD »
Logged
 

Offline Kryptid (OP)

  • Global Moderator
  • Naked Science Forum King!
  • ********
  • 5462
  • Activity:
    44.5%
  • Thanked: 234 times
    • View Profile
Re: Is it possible to correct a distorted image and learn its proportions?
« Reply #3 on: 04/10/2012 05:06:49 »
Many thanks, RD!

Unfortunately, this has only raised more questions for me than answers...

I'm attempting to measure the leading edge sweep on an aircraft wing and the values that your corrected images have is less than 45 degrees. Based on what I've seen of it, I'm almost certain that it's more than 45 degrees (going by my eyes). If you could correct one more perspective image (the top view of the airplane in the image), RD, I would be very grateful. That would help a lot. If not, I suppose I can try it myself:

Logged
 

Offline CliffordK

  • Naked Science Forum King!
  • ******
  • 6408
  • Activity:
    0%
  • Thanked: 15 times
  • Site Moderator
    • View Profile
Re: Is it possible to correct a distorted image and learn its proportions?
« Reply #4 on: 04/10/2012 07:22:43 »
Gimp is a free program:

http://www.gimp.org/

It is primarily a Linux program, but there should be both Windows and Linux versions available.  It is very powerful with some tools, but, a little cumbersome with other aspects.

 [ Invalid Attachment ]
 [ Invalid Attachment ]

Two things became obvious as I tried to rotate the object using Gimp.
  • One looses the X-Y scaling (at least with Gimp).  So, one really needs some kind of proportional X-Y scale to make it come out right.
  • Gimp (and probably no program) can not truly do a 3-D projection to 2-D transformation.  Potentially one can come close with the scale, but the 3D details may obscure the 2-D layout
Assuming the two initial photos are of the same monitor/image, and are to a true scale, then one could potentially merge the two images.  Then determine the true aspect ratio of the Dell monitor.  By setting the proper aspect ratio of the monitor, one might be able to recover the true aspect ratio for the image.

Of course, pixels may not be square, so it may depend on how well calibrated the initial image was.

* Plane_rotate_1.jpg (42.69 kB, 730x433 - viewed 856 times.)

* Plane_rotate_3D.jpg (34.03 kB, 484x796 - viewed 843 times.)
Logged
 



Offline CliffordK

  • Naked Science Forum King!
  • ******
  • 6408
  • Activity:
    0%
  • Thanked: 15 times
  • Site Moderator
    • View Profile
Re: Is it possible to correct a distorted image and learn its proportions?
« Reply #5 on: 04/10/2012 08:42:02 »
Is the leading edge of the wingtip at a right angle? 
That might be enough to calibrate your X-Y scale.

It is quite possible that both the leading and trailing edge of the wings are at 45° angles.
Logged
 

Online RD

  • Naked Science Forum GOD!
  • *******
  • 9085
  • Activity:
    13.5%
  • Thanked: 150 times
    • View Profile
Re: Is it possible to correct a distorted image and learn its proportions?
« Reply #6 on: 04/10/2012 12:43:37 »
Quote from: CliffordK on 04/10/2012 07:22:43
... one really needs some kind of proportional X-Y scale to make it come out right ...

If the dotted lines running horizontally and vertically have the same number of dots-per-unit-length, (effectively rulers), then they could be used to ensure the aspect ratio was correct ...

 [ Invalid Attachment ]

* aspect ratio tweaked so rulers match.jpg (37.6 kB, 339x256 - viewed 772 times.)
« Last Edit: 04/10/2012 12:55:38 by RD »
Logged
 

Offline Kryptid (OP)

  • Global Moderator
  • Naked Science Forum King!
  • ********
  • 5462
  • Activity:
    44.5%
  • Thanked: 234 times
    • View Profile
Re: Is it possible to correct a distorted image and learn its proportions?
« Reply #7 on: 04/10/2012 16:42:22 »
Many thanks, RD! =)
Logged
 

Online RD

  • Naked Science Forum GOD!
  • *******
  • 9085
  • Activity:
    13.5%
  • Thanked: 150 times
    • View Profile
Re: Is it possible to correct a distorted image and learn its proportions?
« Reply #8 on: 05/10/2012 11:17:50 »
The repeated 45 degree angles could be an anti-radar measure rather than an aerodynamic thing: to minimise the amount of any radar beam reflected from the wing back to the source.
Logged
 



  • Print
Pages: [1]   Go Up
« previous next »
Tags:
 

Similar topics (5)

Is the Copenhagen Interpretation correct interpretation of quantum mechanics?

Started by jeffreyHBoard Physics, Astronomy & Cosmology

Replies: 81
Views: 21744
Last post 12/11/2015 20:37:13
by liquidspacetime
Is the online Omni calculator correct as a combined gas law calculator?

Started by melaniejsBoard Geek Speak

Replies: 0
Views: 12482
Last post 06/03/2020 16:43:13
by melaniejs
Noise Induce Hearing Loss (NIHL) : Is the correct decibel measure being used?

Started by RiderScanBoard Physiology & Medicine

Replies: 4
Views: 4185
Last post 24/04/2014 13:19:29
by RiderScan
Is my design for a Cockroft-Walton / electrostatic particle accelerator correct?

Started by eigenmaxBoard General Science

Replies: 0
Views: 1516
Last post 19/06/2017 09:06:58
by eigenmax
What is the correct charger voltage for car type lead acid batteries in an UPS?I

Started by syhprumBoard Technology

Replies: 3
Views: 656
Last post 13/06/2020 11:24:54
by syhprum
There was an error while thanking
Thanking...
  • SMF 2.0.15 | SMF © 2017, Simple Machines
    Privacy Policy
    SMFAds for Free Forums
  • Naked Science Forum ©

Page created in 0.216 seconds with 56 queries.

  • Podcasts
  • Articles
  • Get Naked
  • About
  • Contact us
  • Advertise
  • Privacy Policy
  • Subscribe to newsletter
  • We love feedback

Follow us

cambridge_logo_footer.png

©The Naked Scientists® 2000–2017 | The Naked Scientists® and Naked Science® are registered trademarks created by Dr Chris Smith. Information presented on this website is the opinion of the individual contributors and does not reflect the general views of the administrators, editors, moderators, sponsors, Cambridge University or the public at large.