00001 #ifndef vimt_sample_profile_bilin_h_ 00002 #define vimt_sample_profile_bilin_h_ 00003 //: 00004 // \file 00005 // \brief Profile sampling functions for 2D images 00006 // \author Tim Cootes 00007 00008 #include <vimt/vimt_image_2d_of.h> 00009 #include <vnl/vnl_fwd.h> 00010 00011 //: Sample along profile, using bilinear interpolation 00012 // Profile points are p+iu, where i=[0..n-1] (world co-ordinates). 00013 // Vector v is resized to n*np elements, where np=image.n_planes(). 00014 // v[0]..v[np-1] are the values from point p 00015 template <class imType, class vecType> 00016 void vimt_sample_profile_bilin(vnl_vector<vecType>& v, 00017 const vimt_image_2d_of<imType>& image, 00018 const vgl_point_2d<double>& p, 00019 const vgl_vector_2d<double>& u, 00020 int n); 00021 00022 #endif // vimt_sample_profile_bilin_h_
1.4.4