Defines | Functions
core/vil/vil_resample_bicub.txx File Reference

Sample grid of points with bicubic interpolation in one image and place in another. More...

#include "vil_resample_bicub.h"
#include <vil/vil_bicub_interp.h>

Go to the source code of this file.

Defines

#define vil_resample_bicub_txx_
#define VIL_RESAMPLE_BICUB_INSTANTIATE(sType, dType)

Functions

bool vil_resample_bicub_corner_in_image (double x0, double y0, const vil_image_view_base &image)
 This function should not be the same in bicub and bilin.
template<class sType , class dType >
void vil_resample_bicub (const vil_image_view< sType > &src_image, vil_image_view< dType > &dest_image, double x0, double y0, double dx1, double dy1, double dx2, double dy2, int n1, int n2)
 Sample grid of points in one image and place in another, using bicubic interpolation.
template<class sType , class dType >
void vil_resample_bicub_edge_extend (const vil_image_view< sType > &src_image, vil_image_view< dType > &dest_image, double x0, double y0, double dx1, double dy1, double dx2, double dy2, int n1, int n2)
 Sample grid of points in one image and place in another, using bicubic interpolation.
template<class sType , class dType >
void vil_resample_bicub (const vil_image_view< sType > &src_image, vil_image_view< dType > &dest_image, int n1, int n2)
 Resample image to a specified width (n1) and height (n2).
template<class sType , class dType >
void vil_resample_bicub_edge_extend (const vil_image_view< sType > &src_image, vil_image_view< dType > &dest_image, int n1, int n2)
 Resample image to a specified width (n1) and height (n2).

Detailed Description

Sample grid of points with bicubic interpolation in one image and place in another.

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 bilin file that would likely also benefit from the same change.

Definition in file vil_resample_bicub.txx.


Define Documentation

#define VIL_RESAMPLE_BICUB_INSTANTIATE (   sType,
  dType 
)
Value:
template void vil_resample_bicub(const vil_image_view<sType >& src_image, \
                                 vil_image_view<dType >& dest_image, \
                                 double x0, double y0, double dx1, double dy1, \
                                 double dx2, double dy2, int n1, int n2); \
template void vil_resample_bicub(const vil_image_view<sType >& src_image, \
                                 vil_image_view<dType >& dest_image, \
                                 int n1, int n2); \
template void vil_resample_bicub_edge_extend(const vil_image_view<sType >& src_image, \
                                             vil_image_view<dType >& dest_image, \
                                             double x0, double y0, double dx1, double dy1, \
                                             double dx2, double dy2, int n1, int n2); \
template void vil_resample_bicub_edge_extend(const vil_image_view<sType >& src_image, \
                                             vil_image_view<dType >& dest_image, \
                                             int n1, int n2)

Definition at line 253 of file vil_resample_bicub.txx.

#define vil_resample_bicub_txx_

Definition at line 3 of file vil_resample_bicub.txx.


Function Documentation

template<class sType , class dType >
void vil_resample_bicub ( const vil_image_view< sType > &  src_image,
vil_image_view< dType > &  dest_image,
double  x0,
double  y0,
double  dx1,
double  dy1,
double  dx2,
double  dy2,
int  n1,
int  n2 
)

Sample grid of points in one image and place in another, using bicubic interpolation.

dest_image(i,j,p) is sampled from the src_image at (x0+i.dx1+j.dx2,y0+i.dy1+j.dy2), where i=[0..n1-1], j=[0..n2-1] dest_image resized to (n1,n2,src_image.nplanes()) Points outside image return zero.

Definition at line 34 of file vil_resample_bicub.txx.

template<class sType , class dType >
void vil_resample_bicub ( const vil_image_view< sType > &  src_image,
vil_image_view< dType > &  dest_image,
int  n1,
int  n2 
)

Resample image to a specified width (n1) and height (n2).

See also:
vil_resample_bilin

Definition at line 223 of file vil_resample_bicub.txx.

bool vil_resample_bicub_corner_in_image ( double  x0,
double  y0,
const vil_image_view_base image 
) [inline]

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

Definition at line 18 of file vil_resample_bicub.txx.

template<class sType , class dType >
void vil_resample_bicub_edge_extend ( const vil_image_view< sType > &  src_image,
vil_image_view< dType > &  dest_image,
double  x0,
double  y0,
double  dx1,
double  dy1,
double  dx2,
double  dy2,
int  n1,
int  n2 
)

Sample grid of points in one image and place in another, using bicubic interpolation.

dest_image(i,j,p) is sampled from the src_image at (x0+i.dx1+j.dx2,y0+i.dy1+j.dy2), where i=[0..n1-1], j=[0..n2-1] dest_image resized to (n1,n2,src_image.nplanes()) Points outside image return zero.

Definition at line 131 of file vil_resample_bicub.txx.

template<class sType , class dType >
void vil_resample_bicub_edge_extend ( const vil_image_view< sType > &  src_image,
vil_image_view< dType > &  dest_image,
int  n1,
int  n2 
)

Resample image to a specified width (n1) and height (n2).

Resample image to a specified width n1 and height n2.

Definition at line 239 of file vil_resample_bicub.txx.