Go to Post Such is life in the fast-paced, laugh-in-the-face-of-adversity, never-let-them-see-you-sweat, sometimes-you're-the-windshield-sometimes-you're-the-bug world of FIRST Robotics! - Sean Schuff [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 26-03-2012, 16:01
SoyStuff SoyStuff is offline
Registered User
FRC #1257
 
Join Date: Jan 2012
Location: Brooklyn
Posts: 29
SoyStuff is a jewel in the roughSoyStuff is a jewel in the roughSoyStuff is a jewel in the rough
Initializing the Axis Camera

How would one go about initializing the axis camera in the 2012 vision sample in C++and get an image? At this point, we've tried two methods.
Our camera is initialized exactly as it was in the 2010 vision sample. Here is how we tried to retrieve an image.
Code:
ColorImage* image;
image = axisCamera.GetImage();
I understand that this returns an HSLImage. Does that matter?

We've also tried this:
Code:
ColorImage* image;
axisCamera.GetImage(image);
This just causes us to lose communication. We don't really know why.

Please, enlighten us.

Thank you.
Reply With Quote
  #2   Spotlight this post!  
Unread 26-03-2012, 17:27
agartner01 agartner01 is offline
Captain + Control Sys & Design
FRC #4174
Team Role: Engineer
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Hector MN
Posts: 109
agartner01 is an unknown quantity at this point
Re: Initializing the Axis Camera

Are you saying your program crashes, or doesn't compile? Have you tried all of these?

Code:
ColorImage *Image = camera.GetImage();
HSLImage *Image = camera.GetImage();
RGBImage *Image = camera.GetImage();

or perhaps:

RGBImage image;
camera.GEtImage(&image);
Reply With Quote
  #3   Spotlight this post!  
Unread 26-03-2012, 21:58
SoyStuff SoyStuff is offline
Registered User
FRC #1257
 
Join Date: Jan 2012
Location: Brooklyn
Posts: 29
SoyStuff is a jewel in the roughSoyStuff is a jewel in the roughSoyStuff is a jewel in the rough
Re: Initializing the Axis Camera

The crashing was actually a problem that I should have caught before I posted. I forgot that the sample code expects that image has been declared dynamically. I fixed that. We still can't find a target, though.
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


All times are GMT -5. The time now is 11:06.

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