Functions
core/vil/vil_sample_profile_bilin.h File Reference

Bilinear profile sampling functions for 2D images. More...

#include <vil/vil_image_view.h>

Go to the source code of this file.

Functions

template<class imType , class vecType >
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.
template<class imType , class vecType >
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.

Detailed Description

Bilinear profile sampling functions for 2D images.

Author:
Tim Cootes

The vil bicub source files were derived from the corresponding vil bilin files, thus the vil bilin/bicub source files are very similar. If you modify something in this file, there is a corresponding bicub file that would likely also benefit from the same change.

Definition in file vil_sample_profile_bilin.h.


Function Documentation

template<class imType , class vecType >
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.

Profile points are (x0+i.dx,y0+i.dy), where i=[0..n-1]. Vector v is filled with n*np elements, where np=image.nplanes()*image.ncomponents() v[0]..v[np-1] are the values from point (x0,y0) Points outside image return zero.

Sample along profile, using bilinear interpolation.

Profile points are along the line between p0 and p1 (in image co-ordinates). Vector v is resized to n*np elements, where np=image.n_planes(). v[0]..v[np-1] are the values from point p Points outside image return zero.

Definition at line 39 of file vil_sample_profile_bilin.txx.

template<class imType , class vecType >
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.

Profile points are (x0+i.dx,y0+i.dy), where i=[0..n-1]. Vector v is filled with n*np elements, where np=image.nplanes()*image.ncomponents() v[0]..v[np-1] are the values from point (x0,y0) Points outside image return NA.

Profile points are along the line between p0 and p1 (in image co-ordinates). Vector v is resized to n*np elements, where np=image.n_planes(). v[0]..v[np-1] are the values from point p Points outside image return NA.

Definition at line 97 of file vil_sample_profile_bilin.txx.