Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

tlvisEdge_pick.h File Reference

#include <tina/sys/sysDef.h>
#include <tina/geometry/geomDef.h>
#include <tinatool/draw/drawDef.h>

Include dependency graph for tlvisEdge_pick.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Functions

void pick_edge_draw (Tv *tv, Edgel *edge, int type)
void pick_mlist_draw (Tv *tv, List *mlist, int type)
void pick_corr_match_draw (Tv *tv1, Match *match, int type)
void stereo_match_list_draw (List *mlist)
void stereo_corr_match_draw (Tv *tv1, Match *match, int num)
Tv_pick left_edge_print (void)
Tv_pick right_edge_print (void)
Tv_pick mono_print (void)
Tv_pick left_edge_matches (void)
Tv_pick left_edge_corr_matches (void)
Tv_pick right_edge_corr_matches (void)
Tv_pick left_string_matches (void)


Function Documentation

Tv_pick left_edge_corr_matches void   ) 
 

Definition at line 441 of file tlvisEdge_pick.c.

References left_pick_closest_corr_match(), PICK_CLOSEST, pick_corr_match_draw(), pick_define(), PICK_DRAW, PICK_FUNC, PICK_NAME, PICK_REPAINT, print_corr_match(), and Tv_pick.

00442 {
00443     return (pick_define(
00444                         PICK_NAME, "corr match",
00445                         PICK_CLOSEST, left_pick_closest_corr_match,
00446                         PICK_DRAW, pick_corr_match_draw,
00447                         PICK_FUNC, print_corr_match,
00448                         PICK_REPAINT, false,
00449                         NULL));
00450 }

Here is the call graph for this function:

Tv_pick left_edge_matches void   ) 
 

Definition at line 430 of file tlvisEdge_pick.c.

References left_pick_closest_matchlist(), PICK_CLOSEST, pick_define(), PICK_DRAW, PICK_FUNC, pick_mlist_draw(), PICK_NAME, PICK_REPAINT, print_matchlist(), and Tv_pick.

Referenced by stereo_test_tool().

00431 {
00432     return (pick_define(
00433                         PICK_NAME, "edge match",
00434                         PICK_CLOSEST, left_pick_closest_matchlist,
00435                         PICK_DRAW, pick_mlist_draw,
00436                         PICK_FUNC, print_matchlist,
00437                         PICK_REPAINT, false,
00438                         NULL));
00439 }

Here is the call graph for this function:

Tv_pick left_edge_print void   ) 
 

Definition at line 400 of file tlvisEdge_pick.c.

References left_pick_closest_edge(), PICK_CLOSEST, pick_define(), PICK_DRAW, pick_edge_draw(), PICK_FUNC, PICK_NAME, print_edges(), and Tv_pick.

Referenced by edge_tool(), and st_corr_tool().

00401 {
00402     return (pick_define(
00403                         PICK_NAME, "edge",
00404                         PICK_CLOSEST, left_pick_closest_edge,
00405                         PICK_DRAW, pick_edge_draw,
00406                         PICK_FUNC, print_edges,
00407                         NULL));
00408 }

Here is the call graph for this function:

Tv_pick left_string_matches void   ) 
 

Definition at line 463 of file tlvisEdge_pick.c.

References left_pick_closest_string(), PICK_CLOSEST, pick_define(), PICK_DRAW, PICK_FUNC, PICK_NAME, PICK_REPAINT, picklist_match_string_draw(), tv_edge_string(), and Tv_pick.

Referenced by stereo_test_tool().

00464 {
00465     return (pick_define(
00466                         PICK_NAME, "string match",
00467                         PICK_CLOSEST, left_pick_closest_string,
00468                         PICK_DRAW, tv_edge_string,
00469                         PICK_FUNC, picklist_match_string_draw,
00470                         PICK_REPAINT, false,
00471                         NULL));
00472 }

Here is the call graph for this function:

Tv_pick mono_print void   ) 
 

Definition at line 420 of file tlvisEdge_pick.c.

References mono_pick_closest_edge(), PICK_CLOSEST, pick_define(), PICK_DRAW, pick_edge_draw(), PICK_FUNC, PICK_NAME, print_edges(), and Tv_pick.

Referenced by corner_tool(), and edge_tool().

00421 {
00422     return (pick_define(
00423                         PICK_NAME, "edge",
00424                         PICK_CLOSEST, mono_pick_closest_edge,
00425                         PICK_DRAW, pick_edge_draw,
00426                         PICK_FUNC, print_edges,
00427                         NULL));
00428 }

Here is the call graph for this function:

void pick_corr_match_draw Tv tv1,
Match *  match,
int  type
 

Definition at line 211 of file tlvisEdge_pick.c.

References draw_matchable(), left_tv(), right_tv(), Tv, tv_get_color(), and tv_set_color().

Referenced by left_edge_corr_matches(), and right_edge_corr_matches().

00212 {
00213   Tv     *tv2 = NULL;
00214   int     old_color;
00215 
00216   if (tv1 == left_tv())
00217     tv2 = right_tv();
00218 
00219   if (tv1 == right_tv())
00220     tv2 = left_tv();
00221 
00222   if (match == NULL || tv1 == NULL || tv2 == NULL)
00223     return;
00224 
00225   old_color = tv_get_color(tv2);
00226   tv_set_color(tv2, green);
00227 
00228   draw_matchable(tv2, match->to2, EDGE);
00229 
00230   tv_set_color(tv2, old_color);
00231 
00232   old_color = tv_get_color(tv1);
00233   tv_set_color(tv1, green);
00234 
00235   draw_matchable(tv1, match->to1, EDGE);
00236 
00237   tv_set_color(tv1, old_color);
00238 }

Here is the call graph for this function:

void pick_edge_draw Tv tv,
Edgel *  edge,
int  type
 

Definition at line 169 of file tlvisEdge_pick.c.

References Tv, and tv_cross2().

Referenced by left_edge_print(), mono_print(), and right_edge_print().

00170 {
00171     if (edge == NULL || type != EDGE)
00172         return;
00173 
00174     tv_cross2(tv, edge_image_pos(edge), 7);
00175 }

Here is the call graph for this function:

void pick_mlist_draw Tv tv,
List *  mlist,
int  type
 

Definition at line 196 of file tlvisEdge_pick.c.

References draw_matchable(), and Tv.

Referenced by left_edge_matches().

00197 {
00198     List   *lptr;
00199     Match  *match;
00200 
00201     if (mlist == NULL || type != LIST)
00202         return;
00203 
00204     for (lptr = mlist; lptr != NULL; lptr = lptr->next)
00205     {
00206         match = (Match *) lptr->to;
00207         draw_matchable(tv, match->to1, match->type);
00208     }
00209 }

Here is the call graph for this function:

Tv_pick right_edge_corr_matches void   ) 
 

Definition at line 452 of file tlvisEdge_pick.c.

References PICK_CLOSEST, pick_corr_match_draw(), pick_define(), PICK_DRAW, PICK_FUNC, PICK_NAME, PICK_REPAINT, print_corr_match(), right_pick_closest_corr_match(), and Tv_pick.

00453 {
00454     return (pick_define(
00455                         PICK_NAME, "corr match",
00456                         PICK_CLOSEST, right_pick_closest_corr_match,
00457                         PICK_DRAW, pick_corr_match_draw,
00458                         PICK_FUNC, print_corr_match,
00459                         PICK_REPAINT, false,
00460                         NULL));
00461 }

Here is the call graph for this function:

Tv_pick right_edge_print void   ) 
 

Definition at line 410 of file tlvisEdge_pick.c.

References PICK_CLOSEST, pick_define(), PICK_DRAW, pick_edge_draw(), PICK_FUNC, PICK_NAME, print_edges(), right_pick_closest_edge(), and Tv_pick.

Referenced by edge_tool(), and st_corr_tool().

00411 {
00412     return (pick_define(
00413                         PICK_NAME, "edge",
00414                         PICK_CLOSEST, right_pick_closest_edge,
00415                         PICK_DRAW, pick_edge_draw,
00416                         PICK_FUNC, print_edges,
00417                         NULL));
00418 }

Here is the call graph for this function:

void stereo_corr_match_draw Tv tv1,
Match *  match,
int  num
 

Definition at line 258 of file tlvisEdge_pick.c.

References draw_matchable(), left_tv(), point, right_tv(), Tv, tv_cltext2(), tv_get_color(), and tv_set_color().

Referenced by draw_corr_match_edgels(), and print_corr_match().

00259 {
00260   Tv     *tv2 = NULL;
00261   Edgel  *edge1, *edge2;
00262   Vec2    pos;
00263   Point2 *point;
00264   char    numstr[10];
00265   int     old_color;
00266 
00267   sprintf(numstr, "%d", num);
00268 
00269   if (tv1 == left_tv())
00270     tv2 = right_tv();
00271 
00272   if (tv1 == right_tv())
00273     tv2 = left_tv();
00274 
00275   if (match == NULL || tv1 == NULL || tv2 == NULL)
00276     return;
00277 
00278   old_color = tv_get_color(tv2);
00279   tv_set_color(tv2, green);
00280 
00281   edge2 = (Edgel *)match->to2;
00282   draw_matchable(tv2, (void *)edge2, EDGE);
00283 
00284   point = (Point2 *)prop_get(edge2->props, POINT2);
00285   pos = point->p;
00286   vec2_x(pos) = (float)tina_int(vec2_x(pos));
00287   vec2_y(pos) = (float)tina_int(vec2_y(pos)) + 0.5;
00288   tv_cltext2(tv2, numstr, pos);
00289 
00290   tv_set_color(tv2, old_color);
00291 
00292   old_color = tv_get_color(tv1);
00293   tv_set_color(tv1, green);
00294 
00295   edge1 = (Edgel *)match->to1;
00296   draw_matchable(tv1, (void *)edge1, EDGE);
00297 
00298   point = (Point2 *)prop_get(edge1->props, POINT2);
00299   pos = point->p;
00300   vec2_x(pos) = (float)tina_int(vec2_x(pos));
00301   vec2_y(pos) = (float)tina_int(vec2_y(pos)) + 0.5;
00302   tv_cltext2(tv1, numstr, pos);
00303 
00304   tv_set_color(tv1, old_color);
00305 }

Here is the call graph for this function:

void stereo_match_list_draw List *  mlist  ) 
 

Definition at line 240 of file tlvisEdge_pick.c.

References draw_matchable(), left_tv(), right_tv(), and Tv.

Referenced by match_string_draw(), and print_matchlist().

00241 {
00242     Tv     *tvl = left_tv();
00243     Tv     *tvr = right_tv();
00244     List   *lptr;
00245     Match  *match;
00246 
00247     if (mlist == NULL)
00248         return;
00249 
00250     for (lptr = mlist; lptr != NULL; lptr = lptr->next)
00251     {
00252         match = (Match *) lptr->to;
00253         draw_matchable(tvl, match->to1, match->type);
00254         draw_matchable(tvr, match->to2, match->type);
00255     }
00256 }

Here is the call graph for this function:


Generated on Thu Nov 12 02:21:54 2009 for Tools by doxygen 1.3.6