Go to Post I don't think Dean Kamen ever recieved a real degree. That doesn't make him any less of an engineer.:) - Adam Y. [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 05-02-2007, 08:24
Bomberofdoom's Avatar
Bomberofdoom Bomberofdoom is offline
Biggest FIRST addict in Israel
AKA: Nir Levanon
FRC #2230 (Zcharia's Angels)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Israel
Posts: 471
Bomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond repute
Send a message via MSN to Bomberofdoom
Maximum CMU width range

Does anyone know the amount of pixels in the x axis of the camera(servos not moving)? From what I understand, Easyc has those values, but we're using MPLab.
Thanks.
  #2   Spotlight this post!  
Unread 05-02-2007, 08:37
JBotAlan's Avatar
JBotAlan JBotAlan is offline
Forever chasing the 'bot around
AKA: Jacob Rau
FRC #5263
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Riverview, MI
Posts: 723
JBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond repute
Send a message via AIM to JBotAlan Send a message via Yahoo to JBotAlan
Re: Maximum CMU width range

The answer is in Kevin Watson's "Bells and whistles" version of the camera code, in tracking.h:
Code:
// parameters for CMUcam2 with OV7620 camera module
#define IMAGE_WIDTH 159
#define IMAGE_HEIGHT 239
Those are in pixels.

Happy hacking,

JBot
__________________
Aren't signatures a bit outdated?
  #3   Spotlight this post!  
Unread 05-02-2007, 08:45
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,185
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Maximum CMU width range

Also, you get about 60 degrees of sight in the wide direction.
  #4   Spotlight this post!  
Unread 05-02-2007, 08:51
JBotAlan's Avatar
JBotAlan JBotAlan is offline
Forever chasing the 'bot around
AKA: Jacob Rau
FRC #5263
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Riverview, MI
Posts: 723
JBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond repute
Send a message via AIM to JBotAlan Send a message via Yahoo to JBotAlan
Re: Maximum CMU width range

Quote:
Originally Posted by Tom Bottiglieri View Post
Also, you get about 60 degrees of sight in the wide direction.
Hmm, I think I measured it to be about 50 degrees last week...back to the drawing board for me...

Then again, my FOV measurements suggested that the longer dimension (the height) has a narrower FOV than the shorter dimension (the width). I went over my math a few times and had someone else check it over, so I'm pretty sure my measurements are OK.

I don't know; I'll take another look at it either tonight or tomorrow night.

JBot
__________________
Aren't signatures a bit outdated?
  #5   Spotlight this post!  
Unread 05-02-2007, 09:17
Bomberofdoom's Avatar
Bomberofdoom Bomberofdoom is offline
Biggest FIRST addict in Israel
AKA: Nir Levanon
FRC #2230 (Zcharia's Angels)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Israel
Posts: 471
Bomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond repute
Send a message via MSN to Bomberofdoom
Re: Maximum CMU width range

Huh, we had it 46.6 degrees....

Thanks again!

Does anyone know the exact(+- 5 degrees) width range?
  #6   Spotlight this post!  
Unread 12-02-2007, 11:56
jdejoannis jdejoannis is offline
Registered User
FRC #1845
 
Join Date: Feb 2006
Location: Atlanta,GA
Posts: 48
jdejoannis will become famous soon enoughjdejoannis will become famous soon enough
Re: Maximum CMU width range

It probably depends a bit on how you measure the view angle.

And yes, the pixel dimensions 160x240, makes the camera's field of view taller than it is wide - unlike a TV screen.

Jason
  #7   Spotlight this post!  
Unread 12-02-2007, 12:18
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Maximum CMU width range

Quote:
Originally Posted by jdejoannis View Post
..the pixel dimensions 160x240, makes the camera's field of view taller than it is wide - unlike a TV screen.
Check again. The width of 160 is in "half resolution" mode, with each reported pixel being twice as wide as it is tall. The actual aspect ratio is a perfectly TV-compatible 320x240.
  #8   Spotlight this post!  
Unread 12-02-2007, 13:45
jdejoannis jdejoannis is offline
Registered User
FRC #1845
 
Join Date: Feb 2006
Location: Atlanta,GA
Posts: 48
jdejoannis will become famous soon enoughjdejoannis will become famous soon enough
Re: Maximum CMU width range

Quote:
Originally Posted by Alan Anderson View Post
Check again. The width of 160 is in "half resolution" mode, with each reported pixel being twice as wide as it is tall. The actual aspect ratio is a perfectly TV-compatible 320x240.
I stand corrected. That is not mentioned in tracking.h. You found that in the CMU manufacturer's specs?
  #9   Spotlight this post!  
Unread 12-02-2007, 17:16
Bomberofdoom's Avatar
Bomberofdoom Bomberofdoom is offline
Biggest FIRST addict in Israel
AKA: Nir Levanon
FRC #2230 (Zcharia's Angels)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Israel
Posts: 471
Bomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond repute
Send a message via MSN to Bomberofdoom
Re: Maximum CMU width range

So does anyone have the estimate? I'm not quite sure what the resolutions tell about the camera's width view.
  #10   Spotlight this post!  
Unread 12-02-2007, 17:21
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Maximum CMU width range

Quote:
Originally Posted by Alan Anderson View Post
Check again. The width of 160 is in "half resolution" mode, with each reported pixel being twice as wide as it is tall. The actual aspect ratio is a perfectly TV-compatible 320x240.
Just to avoid some confusion here, Alan is correct when he says the imager used in the CMUcam2 is larger than the values found in tracking.h. To get reasonable update rates from the camera, the microcontroller down-samples the image to 160 x 240 and then does all operations on that smaller image.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #11   Spotlight this post!  
Unread 12-02-2007, 18:32
jdejoannis jdejoannis is offline
Registered User
FRC #1845
 
Join Date: Feb 2006
Location: Atlanta,GA
Posts: 48
jdejoannis will become famous soon enoughjdejoannis will become famous soon enough
Re: Maximum CMU width range

Which suggests that vertical, say height, calculations are more accurate.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
axel hole width Booger Technical Discussion 1 17-07-2006 16:29
Measuring a Pulse Width MikeDubreuil Programming 22 21-07-2005 10:22
Width of the Ball Holders stuy694 Rules/Strategy 2 10-01-2004 18:11
Bridge Width Question archiver 2001 3 23-06-2002 22:54


All times are GMT -5. The time now is 10:43.

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