Go to Post Engineering still can't beat Physics! - Manoel [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 27-01-2012, 21:35
Glen Glen is offline
Registered User
FRC #1444
 
Join Date: Jan 2012
Location: St. Louis
Posts: 5
Glen is an unknown quantity at this point
Backboard Pixel Distance Question

The 2012 Vision whitepaper explains on page 9 how to compute the distance from the target. We understand everything but the 56 pixel wide target rectangle (This is the actual quote):

Quote:
The target width measures 2 ft wide, and in the example images used earlier, the target rectangle measures 56 pixels when the camera resolution is 20x240. This means that the blue rectangle width is 2*320/56 or 11.4 ft. Half of the width is 6.7 ft, and the camera used is the M1011, so the view angle is ~47˚, making Θ equal to 23.5˚.
My question is this, where did they get the target rectangle width in pixels (56 in their case)? After all, that isn't a fixed number, it will change accordingly based on how far/close the robot is to the target.

Some clarification would be great.

Last edited by Glen : 27-01-2012 at 21:40. Reason: added source page number and more explanation
  #2   Spotlight this post!  
Unread 27-01-2012, 22:11
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: Backboard Pixel Distance Question

Quote:
Originally Posted by Glen View Post
The 2012 Vision whitepaper explains on page 9 how to compute the distance from the target. We understand everything but the 56 pixel wide target rectangle (This is the actual quote):



My question is this, where did they get the target rectangle width in pixels (56 in their case)? After all, that isn't a fixed number, it will change accordingly based on how far/close the robot is to the target.

Some clarification would be great.
The pixel width will vary with how far you are away from the target. What you know is how wide the target is (i.e. 2 ft). Using the math in the paper, you can convert the pixel with into how far away you are from the target.

Think about it from your standpoint as a human: the farther you are from something, the smaller it looks, right? With the camera and the math in the paper, you can translate the "how small it looks" directly into "how far away" it is.

The "56" number in the paper is just an example. They said "let's say the camera shows the width of the rectangle is 56 pixles, then that means ..."
__________________
-
An ounce of perception is worth a pound of obscure.
  #3   Spotlight this post!  
Unread 27-01-2012, 22:54
Glen Glen is offline
Registered User
FRC #1444
 
Join Date: Jan 2012
Location: St. Louis
Posts: 5
Glen is an unknown quantity at this point
Re: Backboard Pixel Distance Question

Quote:
Originally Posted by Chris Hibner View Post
The "56" number in the paper is just an example. They said "let's say the camera shows the width of the rectangle is 56 pixles, then that means ..."
We understand that that was used as an example, but how do we find that number? You have to have a way to find the exact number (you can't use examples for the real thing). How does the camera "show" the width of the rectangle is 56 pixels? If I step 10 feet farther back, obviously the target rectangle will NOT measure 56 pixels anymore. How do find out what the NEW width is?
  #4   Spotlight this post!  
Unread 28-01-2012, 09:53
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,753
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Backboard Pixel Distance Question

The width was measured from the particle that is believed to be a particle. It was actually the width of the bounding box of the particle. Those numbers come from the particle analysis report function.

Greg McKaskle
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 18:52.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi