core/vil/vil_sample_profile_bicub.h
Go to the documentation of this file.
00001 // This is core/vil/vil_sample_profile_bicub.h
00002 #ifndef vil_sample_profile_bicub_h_
00003 #define vil_sample_profile_bicub_h_
00004 //:
00005 // \file
00006 // \brief Bicubic profile sampling functions for 2D images
00007 //
00008 // The vil bicub source files were derived from the corresponding
00009 // vil bilin files, thus the vil bilin/bicub source files are very
00010 // similar.  If you modify something in this file, there is a
00011 // corresponding bilin file that would likely also benefit from
00012 // the same change.
00013 
00014 #include <vil/vil_image_view.h>
00015 
00016 //: Sample along profile, using bicubic interpolation
00017 //  Profile points are (x0+i.dx,y0+i.dy), where i=[0..n-1].
00018 //  Vector v is filled with n*np elements, where np=image.nplanes()*image.ncomponents()
00019 //  v[0]..v[np-1] are the values from point (x0,y0)
00020 //  Points outside image return zero.
00021 // \relatesalso vil_image_view
00022 template <class imType, class vecType>
00023 void vil_sample_profile_bicub(vecType* v,
00024                               const vil_image_view<imType>& image,
00025                               double x0, double y0, double dx, double dy,
00026                               int n);
00027 
00028 #endif // vil_sample_profile_bicub_h_