contrib/mul/vimt/vimt_transform_util_2d.h
Go to the documentation of this file.
00001 #ifndef vimt_transform_util_2d_h_
00002 #define vimt_transform_util_2d_h_
00003 
00004 //: \file
00005 //  \brief Functions using vimt_transform_2d
00006 //  \author dac
00007 
00008 #include <vimt/vimt_transform_2d.h>
00009 
00010 #include <vgl/vgl_box_2d.h>
00011 #include <vgl/vgl_point_2d.h>
00012 
00013 //: Compute similarity transform which maps the p1,p2 to q1,q2
00014 void vimt_calc_transform_2d(  vimt_transform_2d& tran,
00015                                   const vgl_point_2d<double>& p1,
00016                                     const vgl_point_2d<double>& p2,
00017                                     const vgl_point_2d<double>& q1,
00018                                     const vgl_point_2d<double>& q2);
00019 
00020 
00021 //: Transform 2d box
00022 void vimt_transform_util_2d( vgl_box_2d<double>& dest_box,
00023                              const vgl_box_2d<double>& src_box,
00024                                   const vimt_transform_2d& trans );
00025 
00026 
00027 //: Transform vector of 2d pts
00028 void vimt_transform_util_2d( vcl_vector< vgl_point_2d<double> >& dest_pt_vec,
00029                              const vcl_vector< vgl_point_2d<double> >& src_pt_vec,
00030                                   const vimt_transform_2d& trans );
00031                         
00032      
00033 
00034                                    
00035 #endif
00036