Westlake Publishing Forums

General Category => General Forums => Topic started by: Hauk on March 22, 2015, 12:29:36 PM

Title: Making scale drawings from photos
Post by: Hauk on March 22, 2015, 12:29:36 PM
Those of you that have read my ramblings about buses will know that I am facing the challenge of making a set of scale drawings based on photos with a large degree of perspective. When you want to model pretty obscure stuff, this is a challenge that raises its confusing head quite often.


But I have never been able to figure out the exact procedure for removing the perspective from the photos.
In theory, it should be possible to make a scale drawing by constructing a  two-point perspective drawing "in reverse".

So I tried a little experiment. I wanted to see if I could calculate the correct height (Z) and width (Y) of this wooden box using only the picture and the length (X). I have made it a bit simpler for myself by taking the picture straight on without tilting the camera, so Z is unsharpened. So the challenge is to remove the shortening on X and Y:

(https://www.finescalerr.com/smf/proxy.php?request=http%3A%2F%2Fwww.folk-rovere.org%2Fmj%2Fbilder%2F1_photo.jpg&hash=289bbc199560d407300ac455869d5f1efd76b6df)

Using standard 2-point perspective drawing theory I established the horizon and two vanishing points:

(https://www.finescalerr.com/smf/proxy.php?request=http%3A%2F%2Fwww.folk-rovere.org%2Fmj%2Fbilder%2F2_vanishing_lines.jpg&hash=3efd67ed7f153bb2afe88b3fc4aaedfcca1b547e)

Then I constructed the View distance, station point and measuring points:

(https://www.finescalerr.com/smf/proxy.php?request=http%3A%2F%2Fwww.folk-rovere.org%2Fmj%2Fbilder%2F4_measuring_points.jpg&hash=a80f09e77f92e50df921fca09649d53042491852)

Next step was making a measurement bar and finding the unshortened length of the X and Y sides:

(https://www.finescalerr.com/smf/proxy.php?request=http%3A%2F%2Fwww.folk-rovere.org%2Fmj%2Fbilder%2F5_measuring_lines.jpg&hash=abd68efbb73380b7b6490855c6241caa78d5a278)

Now it should be just a matter of scaling everything so that the width becomes correct based on the known X dimension of 153mm. This should in theory give the correct Y and Z dimensions.  And measuring the height on the drawing gives indeed the correct height within a reasonable margin. But the Y came out  too short, only around 80% of what it should be. I did the same experiment with a diffent box and  got the almost exactly  the same error. So I am doing something wrong. Does anybody have a suggestion for where I went wrong?
I would also love to hear from others that have tried to make scale drawings the same way, and maybe with methods that actually work...

Any input is very welcome !
Title: Re: Making scale drawings from photos
Post by: mabloodhound on March 22, 2015, 12:38:47 PM
SketchUp does that for you when you import a photograph into it and scale the photo.  It does require that you have a fairly straight on photo (not tilted) as you have done.  SketchUp has many good features for photo work to drawing.
Title: Re: Making scale drawings from photos
Post by: finescalerr on March 22, 2015, 12:47:40 PM
I would guess that part of your problem is lens geometry. You may need some kind of unique equation and knowledge of lens distortion (different for every lens). I am helpless trying to understand anything with numbers and, if you add letters to those numbers I simply shut down, but I do know lens and sensor pairings use a lot of tricky math. -- Russ
Title: Re: Making scale drawings from photos
Post by: Hauk on March 22, 2015, 12:55:58 PM
Quote from: finescalerr on March 22, 2015, 12:47:40 PM
I would guess that part of your problem is lens geometry. You may need some kind of unique equation and knowledge of lens distortion (different for every lens). I am helpless trying to understand anything with numbers and, if you add letters to those numbers I simply shut down, but I do know lens and sensor pairings use a lot of tricky math. -- Russ

You might be on to something. But you should be able to do the exercise without the aid of a image made by a camera at all.
A perspective drawing of a box made using the exact same perspective drawing theory should be possible to "reverse engineer" into a scale drawing without any foreshortening.

Hmm, but if that works, I would actually have proven your theory that it is  the lens that creates the error! So that will be tomorrows exercise.
Title: Re: Making scale drawings from photos
Post by: 5thwheel on March 22, 2015, 01:49:08 PM
This is a method I taught in a model building class.
Title: Re: Making scale drawings from photos
Post by: 5thwheel on March 22, 2015, 01:50:36 PM
Instructions

To add second plane add base line E-F crossing A-B at7 out at an angle to the right to match the base of the object such as a box. Extend reference line to the right to establish all verticals up from the baseline as was done in the first plane.
Title: Re: Making scale drawings from photos
Post by: Chuck Doan on March 22, 2015, 04:29:32 PM
Great info Bill!
Title: Re: Making scale drawings from photos
Post by: finescalerr on March 23, 2015, 12:08:42 AM
Are you a genius or something? I couldn't have figured that out in six lifetimes! -- Russ
Title: Re: Making scale drawings from photos
Post by: nalmeida on March 23, 2015, 10:41:10 AM
I use a tool called perpective correction which can be found in most graphic editing programs. I use it in Paint Shop Pro. It's not exact but when you consider all the variables it's quite difficult being exact when using photos. With that said I found out that even using manufacturers plans it's also a challenge, it's interesting how changes were made on the fly ignoring original plans and adapting to the manufacture.
Title: Re: Making scale drawings from photos
Post by: Hauk on March 23, 2015, 10:49:20 AM
As usual, any question on this forum results in a lot of interesting replies.

But none of them so far adresses the main problem:

How to remove the foreshortening in the planes without knowing *any* of the dimensions.

I still think this should be possible using perspective drawing techniques in reverse.

Finding a good way to remove the foreshortening would be especially useful on pictures of structures where you have no circular features to aid you in estimating the foreshortening.

So keep the discussions going!
Title: Re: Making scale drawings from photos
Post by: Bill Gill on March 23, 2015, 11:11:31 AM
Hauk, I'm confused. If you don't have any dimensions, how would you know there was distortion in the first place?
Title: Re: Making scale drawings from photos
Post by: eTraxx on March 24, 2015, 10:32:45 AM
I brought one of the buses into Sketchup via Match Photo and made an attempt to align the perspective bars to it. Then made a 'box' around the bus so I could project the photo on to it.

(https://www.finescalerr.com/smf/proxy.php?request=http%3A%2F%2Fimages108.fotki.com%2Fv1279%2Fphotos%2F2%2F1709102%2F9661358%2Fbus-vi.jpg&hash=0bb163b8d6cf33ab41bd6f6a1a06d3adf3a52a8a)

I projected the image onto the box and switched to Parallel Projection and viewed from right.

(https://www.finescalerr.com/smf/proxy.php?request=http%3A%2F%2Fimages34.fotki.com%2Fv1523%2Fphotos%2F2%2F1709102%2F9661358%2Fbus2-vi.jpg&hash=aa3640fdd5da387ecb5d62a0f39bccbe08070f93)

this was done 'on the quick' .. spending a little more time and you might get a better view. In Paint Shop Pro you can adjust/correct distortions by the camera lens .. Barrel, Fisheye and Pincushion. Someone who knows a little about the way a camera lens distorts photo can use that prior to using the Sketchup Match Photo and get better results. Here I applied a Fisheye Correction on the first photo with the box around it as it shows the correction made.

(https://www.finescalerr.com/smf/proxy.php?request=http%3A%2F%2Fimages58.fotki.com%2Fv450%2Fphotos%2F2%2F1709102%2F9661358%2Fbus3-vi.jpg&hash=16778c7ca2a5d3dc5135b11bfc7ba73e53843329)
Title: Re: Making scale drawings from photos
Post by: Hauk on March 24, 2015, 11:04:37 AM
Quote from: Bill Gill on March 23, 2015, 11:11:31 AM
Hauk, I'm confused. If you don't have any dimensions, how would you know there was distortion in the first place?

The dimensions are not important. But the presumption you have to accept in my example is that the object in the photo is box with sides at 90 deg to each other, and that the planes opposite each other are parallel.

This is usually a safe bet with basic structures, boxcars etc.

So when you have picture where you are certain that these criteria is met, you should be able to convert the perspective photo into a  drawing with the perspective removed, and with correct proportions.

But without a dimension from the object (measured or estimated) you have no way of knowing the scale of your drawing. You have no way of knowing if the box in my picture is a giant replica hundred times the size of the original archive box or a scale model.

Title: Re: Making scale drawings from photos
Post by: peterh on April 06, 2015, 01:01:29 AM
I know of a way of making a plan from a photo by geometry. You find the station point as you have done in your first post, but then you proceed differently, starting by drawing radial lines up from the station point through corners and edges on the photo.

I could post a sketch, but haven't figured out how to post an image yet. Better still, I could email you a PDF of the magazine article that told me how. If you don't want to put your email on this forum, why not email Marc R (email at the top of the main forum page) and ask if I can send it to him and he will forward it to you.
Title: Re: Making scale drawings from photos
Post by: Bill Gill on April 06, 2015, 05:04:24 AM
Hello, Peter. Please share the perspective technique you found with the forum. I'd find it helpful for several projects and others probably will be interested as well. It took me a couple tries to figure out how to post images too. I emailed Marc R for assistance. He said to reduce the image to 72 dpi and that only one image can be posted at a time.

When you are logged on and you want to add an image to a reply or new topic, first click "-Additional Options" just below and to the left of the white text box. Then click "Choose file" that will open a window where you can search for the image you want, click on it and click "open". If you have another image you can click "(more attachments)" and repeat the search, open steps, but you can only post a max of 4 images at one time, and they cannot be larger than 230 KB, for more images you have to add another reply to the post and repeat the steps. Finally click "Post" to post it all.
One quirk I cannot figure out is how to see a "Preview". When I click on it the reply vanishes and I have to start all over. Good Luck, hope to see your success here later.
Title: Re: Making scale drawings from photos
Post by: finescalerr on April 06, 2015, 11:54:16 AM
We have entire "sticky" thread on the subject of posting images: http://www.finescalerr.com/smf/index.php?topic=3.0 (http://www.finescalerr.com/smf/index.php?topic=3.0) -- Russ
Title: Re: Making scale drawings from photos
Post by: peterh on April 06, 2015, 12:56:34 PM
The procedure is fairly complex and you really have to see the whole article, which is copyright. It is from a local model railway magazine, but back copies are sold out. I'll check with the publisher if they still think copyright applies before I post it here.

Or, of you send me a message with your email I'll email you the article.
Title: Re: Making scale drawings from photos
Post by: peterh on April 06, 2015, 09:40:23 PM
Here's page 3 of the 3 page article. If you publish the article somewhere else, please credit the author, Fred Lee, New Zealand.
Title: Re: Making scale drawings from photos
Post by: peterh on April 06, 2015, 09:42:22 PM
... page 2 ...
Title: Re: Making scale drawings from photos
Post by: peterh on April 06, 2015, 10:04:59 PM
Ok, page 1 is proving difficult. Here's the top part
Title: Re: Making scale drawings from photos
Post by: peterh on April 06, 2015, 10:18:20 PM
... and here's the bottom part of page 1. And the last of this ...
Title: Re: Making scale drawings from photos
Post by: Bill Gill on April 07, 2015, 04:29:42 AM
Thank you, Peter, and Fred Lee and/or the publisher.