View Single Post
  #2   Spotlight this post!  
Unread 26-01-2012, 23:40
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: How to capture image from Axis 206 and save to cRIO?

Quote:
Originally Posted by Glen View Post
HSLImage *targetImage = new HSLImage("/testImage.png"); // create image

I am unsure as to what this is supposed to be doing, but it looks like this should save the image , right? What could be wrong?
This line attempts to open an image at that location, not save it. See here, http://mmrambotics.ca/wpilib/class_h...8e2dd2 4383e6

You can use the ImageBase::Write function...

Code:
HSLImage *image = camera.GetImage();
image->Write("testImage.jpg");
Reply With Quote