View Single Post
  #1   Spotlight this post!  
Unread 18-01-2010, 22:39
Teh1337Bix's Avatar
Teh1337Bix Teh1337Bix is offline
Registered User
None #3132
 
Join Date: Jan 2010
Location: Australia
Posts: 13
Teh1337Bix is an unknown quantity at this point
Problem using the camera.

I've been trying out the camera in the vision assistant and it works great. Now I wanna put ellipse detection into our robot. The code below is the code straight from the documentation but it isn't working though because it doesn't know where any of the mentioned classes are (mono image, color image). I've been looking around in WPI LIB and stuff trying to find where the classes are so I can reference them properly, but to know avail. Anyone got any working code that they'd be happy to show me? Or at least tell me where the classes are?

Code:
ColorImage *image; 

MonoImage *luminancePlane = image->getLuminancePlane();
vector<EllipseMatch> *results = luminancePlane->DetectEllipses(&ellipseDescriptor, &curveOptions, NULL, NULL);
printf("Found %d ellipses\n", results->size()); 
delete luminancePlane;
__________________
Yes I'm Aussie, and yes I ride a kangaroo to school.
Yeah bruduz!!!