|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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;
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Is anyone using the Camera? | GillSt.Bernards | General Forum | 19 | 05-03-2009 21:52 |
| Getting the Image from the Camera Using Windriver (C++) | computerish | C/C++ | 0 | 17-01-2009 16:03 |
| Where do I begin to get the robot to move using the camera? | Ianuser | Programming | 10 | 16-02-2007 17:55 |
| Using Easy C to program the camera. | Tazlikesrobots | Programming | 5 | 19-02-2006 21:33 |
| How many teams are using the Camera? | Matt Goulart | Electrical | 3 | 30-01-2005 09:29 |