| Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
#include <Vision.h>
Public Member Functions | |
| Vision () | |
| ~Vision () | |
| int | getWidth () |
| int | getHeight () |
| void | initialize () |
| void | setCameraParams () |
| void | setResolution () |
| void | setColors () |
| int | getColor (const char *color) |
| void | initializeEventSpecs () |
| void | enableEvents (int vevent) |
| void | enableEvents (int vevent, int noise) |
| void | disableEvents (int vevent) |
| void | setNoiseThreshold (int vevent, int noise) |
| bool | close () |
| bool | processFrame (const uchar *data_y, const uchar *data_u, const uchar *data_v, int width, int height, int skip) |
| bool | saveThresholdImage (char *filename) |
Public Attributes | |
| unsigned long | frameTimestamp |
| int | frame_count |
| cmap_t * | cmap |
| cmap_t * | tmap |
| run * | rmap |
| run * | rmap2 |
| region * | reg |
| int | yindex [144] |
| VisionObjectInfo | vobj_info [NUM_VISION_OBJECTS] |
| VisionEventSpec | vevent_spec [NUM_VEVENTS] |
| color_class_state | color [MAX_COLORS] |
| int | width |
| int | height |
| int | max_width |
| int | max_height |
| int | max_runs |
| int | max_regions |
| int | num_colors |
| int | num_runs |
| int | num_regions |
| double | body_angle |
| double | body_height |
| double | head_angles [3] |
| Marker | markers [3] |
| int | vis_markers |
| ObjectInfo * | obj_info |
| OFbkImageLayer | imageLayer |
Private Member Functions | |
| bool | thresholdImage (CMVision::image_idx< rgb > &img) |
| bool | thresholdImage (CMVision::image_yuv< const uchar > &img) |
| template<class image> bool | runLowLevelVision (image &img) |
| int | getColorUnsafe (int x, int y) |
| int | getNearColor (int x, int y) |
| int | addToHistHorizStrip (int y, int x1, int x2, int *color_cnt) |
| int | addToHistVertStrip (int x, int y1, int y2, int *color_cnt) |
| void | createEvent (unsigned int tid, unsigned int sid, float cenX, float cenY) |
| vector3d | getPixelDirection (double x, double y) |
| void | findSpan (double &left, double &right, double x1, double x2, double y1, double y2) |
| int | calcEdgeMask (double x1, double x2, double y1, double y2) |
| int | calcEdgeMask (int x1, int x2, int y1, int y2) |
| int | calcEdgeMask (region *tmpreg) |
| int | isIn (region *r1, region *r2) |
| int | isAdjacent (region *r1, region *r2) |
| bool | findHand (VObject *hand, VisionObjectInfo *hand_info) |
| bool | findBall (int ball_color, VObject *ball, VisionObjectInfo *ball_info) |
| bool | findThing (VObject *thing, VisionObjectInfo *thing_info) |
| bool | findMarkers () |
| bool | findGesture (VisionObjectInfo *hand_info) |
| int | identifyMarker (int color1, int color2, int color3) |
| bool | generateEvent (int vevent, double conf, int cenX, int cenY) |
| bool | runHighLevelVision (ObjectInfo *obj_info) |
| Vision (const Vision &) | |
| don't copy | |
| Vision | operator= (const Vision &) |
| don't assign | |
Private Attributes | |
| VisionSerializer * | vser |
| CMVision::image_yuv< const uchar > | img |
| hash_map< const char *, int, hash< const char * >, hashcmp_eqstr > | color_names |
Friends | |
| class | VisionSerializer |
|
|
Definition at line 23 of file Vision.cc. References initialize(), VisionSerializer, and vser. |
Here is the call graph for this function:

|
|
|
|
|
don't copy
|
|
||||||||||||||||||||
|
Definition at line 296 of file Vision.cc. References bound(), getColorUnsafe(), height, and width. |
Here is the call graph for this function:

|
||||||||||||||||||||
|
Definition at line 311 of file Vision.cc. References bound(), getColorUnsafe(), height, and width. |
Here is the call graph for this function:

|
|
Definition at line 178 of file Vision.h. References calcEdgeMask(). |
Here is the call graph for this function:

|
||||||||||||||||||||
|
Definition at line 281 of file Vision.cc. References height, VisionInterface::OFF_EDGE_BOTTOM, VisionInterface::OFF_EDGE_LEFT, VisionInterface::OFF_EDGE_RIGHT, VisionInterface::OFF_EDGE_TOP, and width. |
|
||||||||||||||||||||
|
|
|
|
Definition at line 256 of file Vision.cc. References cmap, DeleteLarge(), max_height, max_width, reg, rmap, rmap2, and tmap. |
Here is the call graph for this function:

|
||||||||||||||||||||
|
Definition at line 783 of file Vision.cc. References erouter, EventBase::EventTypeID_t, and EventRouter::postEvent(). |
Here is the call graph for this function:

|
|
Definition at line 210 of file Vision.cc. References VisionEventSpec::listeners, and vevent_spec. |
|
||||||||||||
|
Definition at line 205 of file Vision.cc. References enableEvents(), and setNoiseThreshold(). |
Here is the call graph for this function:

|
|
Definition at line 201 of file Vision.cc. References VisionEventSpec::listeners, and vevent_spec. |
|
||||||||||||||||
|
Definition at line 362 of file Vision.cc. References calcEdgeMask(), color, color_class_state, VisionInterface::VObject::confidence, gaussian_with_min(), generateEvent(), getColor(), pct_from_mean(), VisionEventNS::PinkBallSID, VisionEventNS::RedBallSID, VisionObjectInfo::reg, region, and vevent_spec. |
Here is the call graph for this function:

|
|
Definition at line 743 of file Vision.cc. References generateEvent(), mathutils::limitRange(), num_runs, VisionObjectInfo::reg, rmap, VisionEventNS::ThumbsupSID, and vevent_spec. |
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 326 of file Vision.cc. References color, color_class_state, VisionInterface::VObject::confidence, generateEvent(), getColor(), VisionEventNS::HandSID, VisionObjectInfo::reg, region, and vevent_spec. |
Here is the call graph for this function:

|
|
Definition at line 624 of file Vision.cc. References color, COLOR_BGREEN, COLOR_ORANGE, COLOR_PURPLE, erouter, getColor(), identifyMarker(), isAdjacent(), markers, VisionEventNS::MarkersSID, EventRouter::postEvent(), region, VisionEvent::setProperty(), EventBase::statusETID, vevent_spec, and vis_markers. |
Here is the call graph for this function:

|
||||||||||||||||||||||||||||
|
|
|
||||||||||||
|
Definition at line 564 of file Vision.cc. References VisionInterface::VObject::confidence, generateEvent(), VisionObjectInfo::reg, VisionEventNS::ThingSID, and vevent_spec. |
Here is the call graph for this function:

|
||||||||||||||||||||
|
Definition at line 219 of file Vision.cc. References EventBase::activateETID, VisionEventSpec::confidence, createEvent(), EventBase::deactivateETID, EventBase::statusETID, and vevent_spec. |
Here is the call graph for this function:

|
|
Definition at line 151 of file Vision.cc. References color_names. |
|
||||||||||||
|
|
|
|
Definition at line 124 of file Vision.h. References height. |
|
||||||||||||
|
|
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 969 of file Vision.cc. References vector3d. |
|
|
Definition at line 123 of file Vision.h. References width. |
|
||||||||||||||||
|
|
Definition at line 158 of file Vision.cc. References bits_u, bits_v, bits_y, cmap_t, initializeEventSpecs(), obj_info, setCameraParams(), setColors(), setResolution(), and tmap. |
Here is the call graph for this function:

|
|
||||||||||||
|
Definition at line 582 of file Vision.cc. References region. |
|
||||||||||||
|
Definition at line 570 of file Vision.cc. References region. |
|
|
don't assign
|
|
||||||||||||||||||||||||||||
|
Definition at line 916 of file Vision.cc. References frame_count, frameTimestamp, get_time(), img, obj_info, runHighLevelVision(), runLowLevelVision(), VisionSerializer::serialize(), and vser. |
Here is the call graph for this function:

|
|
Definition at line 790 of file Vision.cc. References findBall(), getColor(), VisionInterface::NUM_VISION_OBJECTS, VisionInterface::PBALL, VisionInterface::ObjectInfo::pball, VisionObjectInfo::reg, and vobj_info. |
Here is the call graph for this function:

|
||||||||||
|
Definition at line 842 of file Vision.cc. References cmap, color, height, image, max_regions, max_runs, num_colors, num_regions, num_runs, reg, rmap, rmap2, thresholdImage(), and width. |
Here is the call graph for this function:

|
|
Definition at line 954 of file Vision.cc. References cmap, color, height, num_colors, width, and WritePPM(). |
Here is the call graph for this function:

|
|
Definition at line 34 of file Vision.cc. References config, Config::vision_config::gain, Config::vision_config::shutter_speed, Config::vision, and Config::vision_config::white_balance. |
|
|
Definition at line 121 of file Vision.cc. References bits_u, bits_v, bits_y, cmap_t, color, color_names, Config::vision_config::colors, config, MAX_COLORS, num_colors, Config::vision_config::thresh, tmap, and Config::vision. |
|
||||||||||||
|
Definition at line 215 of file Vision.cc. References VisionEventSpec::filter, and vevent_spec. |
|
|
Definition at line 67 of file Vision.cc. References cmap, config, DeleteLarge(), height, imageLayer, max_height, max_regions, max_runs, max_width, MIN_EXP_REGION_SIZE, MIN_EXP_RUN_LENGTH, NewLarge(), reg, Config::vision_config::resolution, rmap, rmap2, Config::vision, and width. |
Here is the call graph for this function:

|
|
|
|
|
Definition at line 810 of file Vision.cc. References cmap, color, height, MAX_COLORS, and width. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Tekkotsu v1.5 |
Generated Fri Oct 10 15:58:12 2003 by Doxygen 1.3.4 |