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