Macros | Functions
vil_sample_profile_bilin.hxx File Reference

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

#include "vil_sample_profile_bilin.h"
#include <vil/vil_bilin_interp.h>

Go to the source code of this file.

Macros

#define VIL_SAMPLE_PROFILE_BILIN_INSTANTIATE(imType, vecType)
 

Functions

bool vil_profile_bilin_in_image (double x0, double y0, double x1, double y1, const vil_image_view_base &image)
 This function should not be the same in bicub and bilin. More...
 
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 safe bilinear interpolation. More...
 
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. More...
 

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.hxx.

Macro Definition Documentation

◆ VIL_SAMPLE_PROFILE_BILIN_INSTANTIATE

#define VIL_SAMPLE_PROFILE_BILIN_INSTANTIATE (   imType,
  vecType 
)
Value:
template void vil_sample_profile_bilin(vecType* v, \
const vil_image_view<imType >& image, \
double x0, double y0, \
double dx, double dy, \
int n); \
template void vil_sample_profile_bilin_edgena(vecType* v, \
const vil_image_view<imType >& image, \
double x0, double y0, \
double dx, double dy, \
int n)
Concrete view of image data of type T held in memory.
Definition: vil_fwd.h:13
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.

Definition at line 149 of file vil_sample_profile_bilin.hxx.

Function Documentation

◆ vil_profile_bilin_in_image()

bool vil_profile_bilin_in_image ( double  x0,
double  y0,
double  x1,
double  y1,
const vil_image_view_base image 
)
inline

This function should not be the same in bicub and bilin.

Definition at line 19 of file vil_sample_profile_bilin.hxx.

◆ vil_sample_profile_bilin()

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 safe bilinear interpolation.

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.hxx.

◆ vil_sample_profile_bilin_edgena()

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 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.hxx.