contrib/rpl/rgrl/rgrl_weighter_unit.cxx
Go to the documentation of this file.
00001 //:
00002 // \author Amitha Perera
00003 // \date   Feb 2003
00004 
00005 #include "rgrl_weighter_unit.h"
00006 
00007 #include "rgrl_match_set.h"
00008 
00009 rgrl_weighter_unit::
00010 rgrl_weighter_unit()
00011 {
00012 }
00013 
00014 
00015 void
00016 rgrl_weighter_unit::
00017 compute_weights( rgrl_scale const&  /*scales*/,
00018                  rgrl_match_set&    match_set ) const
00019 {
00020   typedef rgrl_match_set::from_iterator from_iter;
00021   typedef from_iter::to_iterator        to_iter;
00022 
00023   //  for each from image feature being matched
00024   for( from_iter fitr = match_set.from_begin();
00025        fitr != match_set.from_end(); ++fitr ) {
00026     for( to_iter titr = fitr.begin(); titr != fitr.end(); ++titr ) {
00027       titr.set_geometric_weight( 1.0 );
00028       titr.set_signature_weight( 1.0 );
00029       titr.set_cumulative_weight( 1.0 );
00030     }
00031   }
00032 }