vil_sample_profile_bilin.h
Go to the documentation of this file.
1 // This is core/vil/vil_sample_profile_bilin.h
2 #ifndef vil_sample_profile_bilin_h_
3 #define vil_sample_profile_bilin_h_
4 //:
5 // \file
6 // \brief Bilinear profile sampling functions for 2D images
7 // \author Tim Cootes
8 //
9 // The vil bicub source files were derived from the corresponding
10 // vil bilin files, thus the vil bilin/bicub source files are very
11 // similar. If you modify something in this file, there is a
12 // corresponding bicub file that would likely also benefit from
13 // the same change.
14 
15 #include <vil/vil_image_view.h>
16 
17 //: Sample along profile, using bilinear interpolation
18 // Profile points are (x0+i.dx,y0+i.dy), where i=[0..n-1].
19 // Vector v is filled with n*np elements, where np=image.nplanes()*image.ncomponents()
20 // v[0]..v[np-1] are the values from point (x0,y0)
21 // Points outside image return zero.
22 // \relatesalso vil_image_view
23 template <class imType, class vecType>
24 void vil_sample_profile_bilin(vecType* v,
25  const vil_image_view<imType>& image,
26  double x0, double y0, double dx, double dy,
27  int n);
28 
29 //: Sample along profile, using bilinear interpolation
30 // Profile points are (x0+i.dx,y0+i.dy), where i=[0..n-1].
31 // Vector v is filled with n*np elements, where np=image.nplanes()*image.ncomponents()
32 // v[0]..v[np-1] are the values from point (x0,y0)
33 // Points outside image return NA.
34 // \relatesalso vil_image_view
35 template <class imType, class vecType>
36 void vil_sample_profile_bilin_edgena(vecType* v,
37  const vil_image_view<imType>& image,
38  double x0, double y0, double dx, double dy,
39  int n);
40 
41 #endif // vil_sample_profile_bilin_h_
Concrete view of image data of type T held in memory.
Definition: vil_fwd.h:13
A base class reference-counting view of some image data.
void vil_sample_profile_bilin_edgena(vecType *v, const vil_image_view< imType > &image, double x0, double y0, double dx, double dy, int n)
Sample along profile, using bilinear interpolation.
void vil_sample_profile_bilin(vecType *v, const vil_image_view< imType > &image, double x0, double y0, double dx, double dy, int n)
Sample along profile, using bilinear interpolation.