~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Tina4/src/vision/stereo/match_supp.c

Version: ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /**@(#)
  2 **/
  3 /* match_supp.c
  4  * 
  5  * generic stereo functions for adding match support structures to matches
  6  * between epipolar edge sub-strings */
  7 
  8 #include <math.h>
  9 #include <tina/sys.h>
 10 #include <tina/sysfuncs.h>
 11 #include <tina/math.h>
 12 #include <tina/mathfuncs.h>
 13 #include <tina/vision.h>
 14 #include <tina/visionfuncs.h>
 15 
 16 /* add support structure to property list of match structure using the
 17  * key MATCH_SUPPORT */
 18 List   *match_add_supp_prop(Match * m)
 19 {
 20     Support *sup;
 21 
 22     sup = supp_alloc();
 23     sup->type = POT_MATCH;
 24     sup->matching_strength = m->weight;
 25     sup->match = m;
 26     m->props = proplist_addifnp(m->props, (void *) sup, MATCH_SUPPORT, rfree, true);
 27     /* BUG control reaches end of non-void function */
 28 }
 29 
 30 /* add support structure to all matches of epipolar edge sub-string
 31  * using match_add_supp_prop function */
 32 void    es_add_supp_prop(Tstring * es)
 33 /* epipolar edge string */
 34 {
 35     if (es == NULL)
 36         return;
 37 
 38     list_apply_func((List *) prop_get(es->props, MLIST),
 39                     (void (*) ()) match_add_supp_prop, NULL);
 40 }
 41 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.