Two Plus Two Older Archives  

Go Back   Two Plus Two Older Archives > General Gambling > Probability
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-28-2005, 01:04 AM
gaming_mouse gaming_mouse is offline
Senior Member
 
Join Date: Oct 2004
Location: my hero is sfer
Posts: 2,480
Default A Geometry/Perspective Question

Consider the image below. The green screen in the center that the man is watching is a rectangle with an aspect ration of 1:1.73.


We can calculate the coordinates relative to the origin of the entire image (ie, the image's upper left corner = (0,0)) of the three visible coordinates of the green screen: lower-left, upper-left, upper-right. The lower-right is being blocked by the man's head.

The question is: Given ONLY the coordinates of the three visible corners of the green screen, how can we calculate the coordinates of the lower right corner?

EDIT: I realize the coords listed in the picture may not be exactly consistent with the lines they need to fall on, since they were taken from photoshop and I had to eyeball what defined the corner in each particular case. Nevertheless, they should be close enough and I am only interested in the method anyway.

Reply With Quote
  #2  
Old 06-28-2005, 03:04 AM
MtDon MtDon is offline
Junior Member
 
Join Date: Jul 2004
Posts: 12
Default Re: A Geometry/Perspective Question

[ QUOTE ]
Consider the image below. The green screen in the center that the man is watching is a rectangle with an aspect ration of 1:1.73.


We can calculate the coordinates relative to the origin of the entire image (ie, the image's upper left corner = (0,0)) of the three visible coordinates of the green screen: lower-left, upper-left, upper-right. The lower-right is being blocked by the man's head.

The question is: Given ONLY the coordinates of the three visible corners of the green screen, how can we calculate the coordinates of the lower right corner?

EDIT: I realize the coords listed in the picture may not be exactly consistent with the lines they need to fall on, since they were taken from photoshop and I had to eyeball what defined the corner in each particular case. Nevertheless, they should be close enough and I am only interested in the method anyway.


[/ QUOTE ]

I'm not sure, but I don't think the three coordinates are enough to accurately determine the coordinate of the fourth corner of the screen.

In the image, none of the edges of the screen are parallel with any other edge.

A complication is that the image is a photo and not a drawing using classical perspective drawing techniques.

I think you would need to know some or all of the following information:

1. Location of the camera with respect to the screen. (x,y,z)

2. Direction the camera was pointing.

3. Focal length of the camera's lense.

4. Format of the camera, i.e., 35mm, large format, digital, etc.

************************************************** ****

However, with a few more coordinates of points on the bottom edge and the right edge, you should be able to fit curves (possibly straight lines, mabe not) to the edges and find their intersection.

You should also be able to do it graphicly by drawing lines/curves (not necessarily straight lines) for the bottom and right edges and locating their intersection. This would seem to be the easiest way of doing it.

When I wrote this I did not consider the fact that you wrote that you know the aspect ratio of the screen. However, your question seems to imply that this is not to be taken into consideration. If it can be, I haven't thought about it enough to say whether my comments would still hold true. Off hand, I think they still would.
Reply With Quote
  #3  
Old 06-28-2005, 05:00 AM
gaming_mouse gaming_mouse is offline
Senior Member
 
Join Date: Oct 2004
Location: my hero is sfer
Posts: 2,480
Default Re: A Geometry/Perspective Question

[ QUOTE ]
I'm not sure, but I don't think the three coordinates are enough to accurately determine the coordinate of the fourth corner of the screen.

[/ QUOTE ]

I'm not sure either, but I'd bet some small amount of money that the 3 points, plus the true aspect ratio of the screen in question (1:1.73) are enough to determine the 4th point.

The fact that it's a photo and not a drawing shouldn't mean that it won't follow the laws of perspective.

But as I said I'm not sure either.....
Reply With Quote
  #4  
Old 06-28-2005, 10:56 PM
RocketManJames RocketManJames is offline
Senior Member
 
Join Date: Nov 2002
Posts: 118
Default Re: A Geometry/Perspective Question

Maybe I'm wrong here, but I would think that the slopes of the each edge of that frame would remain constant. We would have 4 different lines defined by 4 different slopes. So, I would have two lines defined by the right edge and the bottom edge of the frame. From those two lines, I would be able to guess at the intersection.

But, maybe there's an obvious reason why the slope of each frame edge does not remain constant. Weird warping perhaps?

Nevermind... I misread the problem. You wanted to use ONLY the 3 coordinates given. My bad.

-RMJ
Reply With Quote
  #5  
Old 06-28-2005, 11:19 PM
SuitedSixes SuitedSixes is offline
Senior Member
 
Join Date: May 2004
Location: AZ
Posts: 220
Default Re: A Geometry/Perspective Question

I haven't thought about Geometry since those three times in college, but don't the slopes of the two opposite edges need to match? So if you find the slope of the far left side, can't you determine the slope of the far right side and solve for the missing point? Or am I not making this complicated enough?
Reply With Quote
  #6  
Old 06-29-2005, 12:31 AM
gaming_mouse gaming_mouse is offline
Senior Member
 
Join Date: Oct 2004
Location: my hero is sfer
Posts: 2,480
Default Re: A Geometry/Perspective Question

[ QUOTE ]
I haven't thought about Geometry since those three times in college, but don't the slopes of the two opposite edges need to match? So if you find the slope of the far left side, can't you determine the slope of the far right side and solve for the missing point? Or am I not making this complicated enough?

[/ QUOTE ]

No, the slopes of opposing sides are not parallel. If you extend them they will eventually meet at a vanishing point.
Reply With Quote
  #7  
Old 06-29-2005, 05:59 AM
bholdr bholdr is offline
Senior Member
 
Join Date: Oct 2004
Location: whoring for bonus
Posts: 1,442
Default Re: A Geometry/Perspective Question

It's impossible. (i think)

without knowing what the exact position of the camera was relitive to the screen (including the length of the lens, weather or not it is corrected for paralax at all, and so on) all you have there is a triangle. there are an infinite possible number of potential quadralaterals composed of the three points on a triangle and another undefined point; there is no solution.
Reply With Quote
  #8  
Old 06-29-2005, 11:09 AM
gaming_mouse gaming_mouse is offline
Senior Member
 
Join Date: Oct 2004
Location: my hero is sfer
Posts: 2,480
Default Re: A Geometry/Perspective Question

[ QUOTE ]
It's impossible. (i think)

without knowing what the exact position of the camera was relitive to the screen (including the length of the lens, weather or not it is corrected for paralax at all, and so on) all you have there is a triangle. there are an infinite possible number of potential quadralaterals composed of the three points on a triangle and another undefined point; there is no solution.

[/ QUOTE ]

I don't think so. Keep in mind that we ALSO know the aspect ratio of the screen. I think this fact and the 3 points determine the quadrilateral. But I'm not 100% sure....
Reply With Quote
  #9  
Old 06-29-2005, 04:08 PM
bholdr bholdr is offline
Senior Member
 
Join Date: Oct 2004
Location: whoring for bonus
Posts: 1,442
Default Re: A Geometry/Perspective Question

correct me if i'm wrong: the aspect ratio is just the ratio of the screen height to the width, right?

the problem with your question is that you've provided two dimensional coordinates- with the third coordinate, it's possible, because we could determine the slope of the screen relitive to the camera, but without it, like i said, all we have is a triangle.
Reply With Quote
  #10  
Old 06-29-2005, 06:54 PM
nycplayer nycplayer is offline
Senior Member
 
Join Date: Apr 2005
Location: New York
Posts: 106
Default Re: A Geometry/Perspective Question

without establishing where the horizon/eye-level is, this can't be solved, I think.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:14 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.