Functions
contrib/mul/vimt/vimt_resample_bilin.h File Reference

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

#include <vcl_cassert.h>
#include <vil/vil_resample_bilin.h>
#include <vil/algo/vil_gauss_reduce.h>
#include <vgl/vgl_point_2d.h>
#include <vgl/vgl_vector_2d.h>
#include <vimt/vimt_image_2d_of.h>

Go to the source code of this file.

Functions

template<class sType , class dType >
void vimt_resample_bilin (const vimt_image_2d_of< sType > &src_image, vimt_image_2d_of< dType > &dest_image, const vgl_point_2d< double > &p, const vgl_vector_2d< double > &u, const vgl_vector_2d< double > &v, int n1, int n2)
 Sample grid of points in one image and place in another, using bilinear interpolation.
template<class sType , class dType >
void vimt_resample_bilin_edge_extend (const vimt_image_2d_of< sType > &src_image, vimt_image_2d_of< dType > &dest_image, const vgl_point_2d< double > &p, const vgl_vector_2d< double > &u, const vgl_vector_2d< double > &v, int n1, int n2)
 Sample grid of points in one image and place in another, using bilinear interpolation.
template<class sType , class dType >
void vimt_resample_bilin_smoothing_edge_extend (const vimt_image_2d_of< sType > &src_image, vimt_image_2d_of< dType > &dest_image, const vgl_point_2d< double > &p, const vgl_vector_2d< double > &u, const vgl_vector_2d< double > &v, int n1, int n2)
 Resample an image using appropriate smoothing if the resolution changes significantly.
template<class sType , class dType >
void vimt_resample_bilin_smoothing (const vimt_image_2d_of< sType > &src_image, vimt_image_2d_of< dType > &dest_image, const vgl_point_2d< double > &p, const vgl_vector_2d< double > &u, const vgl_vector_2d< double > &v, int n1, int n2)
 Resample an image using appropriate smoothing if the resolution changes significantly.

Detailed Description

Sample grid of points in one image and place in another.

Author:
Tim Cootes

Definition in file vimt_resample_bilin.h.


Function Documentation

template<class sType , class dType >
void vimt_resample_bilin ( const vimt_image_2d_of< sType > &  src_image,
vimt_image_2d_of< dType > &  dest_image,
const vgl_point_2d< double > &  p,
const vgl_vector_2d< double > &  u,
const vgl_vector_2d< double > &  v,
int  n1,
int  n2 
) [inline]

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

dest_image(i,j,p) is sampled from the src_image at p+i.u+j.v, where i=[0..n1-1], j=[0..n2-1] in world co-ordinates.

dest_image resized to (n1,n2,src_image.nplanes())

dest_image.world2im() set up so that the world co-ordinates in src and dest match

Points outside image return zero.

Definition at line 26 of file vimt_resample_bilin.h.

template<class sType , class dType >
void vimt_resample_bilin_edge_extend ( const vimt_image_2d_of< sType > &  src_image,
vimt_image_2d_of< dType > &  dest_image,
const vgl_point_2d< double > &  p,
const vgl_vector_2d< double > &  u,
const vgl_vector_2d< double > &  v,
int  n1,
int  n2 
) [inline]

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

dest_image(i,j,p) is sampled from the src_image at p+i.u+j.v, where i=[0..n1-1], j=[0..n2-1] in world co-ordinates.

dest_image resized to (n1,n2,src_image.nplanes())

dest_image.world2im() set up so that the world co-ordinates in src and dest match

Points outside image return the value of the nearest valid pixel.

Definition at line 65 of file vimt_resample_bilin.h.

template<class sType , class dType >
void vimt_resample_bilin_smoothing ( const vimt_image_2d_of< sType > &  src_image,
vimt_image_2d_of< dType > &  dest_image,
const vgl_point_2d< double > &  p,
const vgl_vector_2d< double > &  u,
const vgl_vector_2d< double > &  v,
int  n1,
int  n2 
) [inline]

Resample an image using appropriate smoothing if the resolution changes significantly.

dest_image(i,j,p) is sampled from the src_image at p+i.u+j.v, where i=[0..n1-1], j=[0..n2-1] in world co-ordinates.

dest_image resized to (n1,n2,src_image.nplanes())

dest_image.world2im() set up so that the world co-ordinates in src and dest match

Points outside image return 0.

Definition at line 153 of file vimt_resample_bilin.h.

template<class sType , class dType >
void vimt_resample_bilin_smoothing_edge_extend ( const vimt_image_2d_of< sType > &  src_image,
vimt_image_2d_of< dType > &  dest_image,
const vgl_point_2d< double > &  p,
const vgl_vector_2d< double > &  u,
const vgl_vector_2d< double > &  v,
int  n1,
int  n2 
) [inline]

Resample an image using appropriate smoothing if the resolution changes significantly.

dest_image(i,j,p) is sampled from the src_image at p+i.u+j.v, where i=[0..n1-1], j=[0..n2-1] in world co-ordinates.

dest_image resized to (n1,n2,src_image.nplanes())

dest_image.world2im() set up so that the world co-ordinates in src and dest match

Points outside image return the value of the nearest valid pixel.

Definition at line 104 of file vimt_resample_bilin.h.