Go to Post Overall, I thought FIRST did a great job with the rules this year - very simple and very clear for the most part. However, something is always going to fall through the cracks (and I don't mean that in a bad way - people need to know that it's practically impossible to do something perfectly). - Chris Hibner [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 29-01-2010, 22:24
RKElectricalman's Avatar
RKElectricalman RKElectricalman is offline
Meezy the Mentor
AKA: Rameez
FRC #0384 (Sparky 384)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2004
Location: Richmond, Va
Posts: 88
RKElectricalman is just really niceRKElectricalman is just really niceRKElectricalman is just really niceRKElectricalman is just really nice
Send a message via AIM to RKElectricalman
Question Camera Target size configuration

We've been fooling around with the Target.cpp and Target.h files to understand enough of it to see how the code determines the size of the target. After a good hour of reading through, and fact checking, we couldn't really figure out how the values in Target.cpp correspond to the real life values of the target.

Does anyone know how the values of Major radius min and max, and minor radius min and max relate to the actual 38 inch diameter of the real life target?

The question is for understanding AND application, and any help you give us will help us greatly now and in the future.

Thanks!
Meezy
__________________
ahhh Division Finalists!!
Reply With Quote
  #2   Spotlight this post!  
Unread 30-01-2010, 08:13
Bongle's Avatar
Bongle Bongle is offline
Registered User
FRC #2702 (REBotics)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Waterloo
Posts: 1,069
Bongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond repute
Send a message via MSN to Bongle
Re: Camera Target size configuration

Major/Minor radii are measured in pixels in the cameras field of view. The camera's field of view is about 44.5 degrees. With that knowledge (and an assumption that each pixel takes up an equal # of degrees), you can compute how many pixels the 38 inch target will take up at whatever distance you're trying to optimize for.

It takes a bit of trig, but it's not tough to do.

See the attached image for a diagram.
Attached Thumbnails
Click image for larger version

Name:	cameraDiagram.PNG
Views:	48
Size:	20.2 KB
ID:	8439  
Reply With Quote
  #3   Spotlight this post!  
Unread 30-01-2010, 17:47
RKElectricalman's Avatar
RKElectricalman RKElectricalman is offline
Meezy the Mentor
AKA: Rameez
FRC #0384 (Sparky 384)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2004
Location: Richmond, Va
Posts: 88
RKElectricalman is just really niceRKElectricalman is just really niceRKElectricalman is just really niceRKElectricalman is just really nice
Send a message via AIM to RKElectricalman
Re: Camera Target size configuration

wow, that was very helpful! Thank you!!

I should've thought about that, pixels... hmm

and i'm guessing the max pixels have to be less than the camera's resolution?
__________________
ahhh Division Finalists!!
Reply With Quote
  #4   Spotlight this post!  
Unread 03-02-2010, 15:13
DjMaddius's Avatar
DjMaddius DjMaddius is offline
Registered User
AKA: Matt Smith
FRC #2620 (Southgate Titans)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Southgate, Mi
Posts: 161
DjMaddius is an unknown quantity at this point
Re: Camera Target size configuration

Quote:
Originally Posted by RKElectricalman View Post
wow, that was very helpful! Thank you!!

I should've thought about that, pixels... hmm

and i'm guessing the max pixels have to be less than the camera's resolution?
They could be the same or smaller than.

The cameras resolution is actually how many pixels by pixels it sees.
Reply With Quote
Reply


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Camera Target Dimensions pribusin General Forum 8 13-01-2010 13:29
Target acquisition with camera- color issues Quarkster Programming 20 12-03-2009 00:11
Camera Tracking Target Jade Programming 3 20-01-2007 01:41
Urgent help needed : Camera locks on to no apparent target! ?!?! Salik Syed Programming 11 06-03-2006 17:24


All times are GMT -5. The time now is 03:29.

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