Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

vimt_sample_grid_bicub.h

Go to the documentation of this file.
00001 #ifndef vimt_sample_grid_bicub_h_
00002 #define vimt_sample_grid_bicub_h_
00003 //:
00004 // \file
00005 // \brief Bicubic grid sampling functions for 2D images
00006 // \author Tim Cootes
00007 //
00008 // \verbatim
00009 //  Modifications
00010 //   Matt Leotta   4/16/03   Copied vimt_sample_grid_bilin to make this
00011 // \endverbatim
00012 
00013 #include <vimt/vimt_image_2d_of.h>
00014 #include <vnl/vnl_fwd.h>
00015 
00016 //: Sample grid from image, using bicubic interpolation
00017 //  Grid points are p+i.u+j.v where i=[0..n1-1], j=[0..n2-1]
00018 //  Vector vec is resized to n1*n2*np elements, where np=image.nplanes().
00019 //  vec[0]..vec[np-1] are the values from point p
00020 //  Samples are taken along direction v first, then along u.
00021 //  Points outside image return zero.
00022 // \relates vimt_image_2d_of
00023 template <class imType, class vecType>
00024 void vimt_sample_grid_bicub(vnl_vector<vecType>& vec,
00025                             const vimt_image_2d_of<imType>& image,
00026                             const vgl_point_2d<double>& p,
00027                             const vgl_vector_2d<double>& u,
00028                             const vgl_vector_2d<double>& v,
00029                             int n1, int n2);
00030 
00031 #endif // vimt_sample_grid_bicub_h_

Generated on Thu Jan 10 14:43:58 2008 for contrib/mul/vimt by  doxygen 1.4.4