Functions
contrib/mul/vimt3d/vimt3d_resample_tricubic.h File Reference

Resample a 3D image by a different factor in each dimension. More...

#include <vgl/vgl_point_3d.h>
#include <vgl/vgl_vector_3d.h>
#include <vil3d/vil3d_image_view.h>
#include <vil3d/algo/vil3d_gauss_reduce.h>
#include <vil3d/vil3d_resample_tricubic.h>
#include <vimt3d/vimt3d_image_3d_of.h>

Go to the source code of this file.

Functions

template<class sType , class dType >
void vimt3d_resample_tricubic (const vimt3d_image_3d_of< sType > &src_image, vimt3d_image_3d_of< dType > &dest_image, const vgl_point_3d< double > &p, const vgl_vector_3d< double > &u, const vgl_vector_3d< double > &v, const vgl_vector_3d< double > &w, int n1, int n2, int n3, dType outval=0)
 Sample grid of points in one image and place in another, using tricubic interpolation.
template<class sType , class dType >
void vimt3d_resample_tricubic_edge_extend (const vimt3d_image_3d_of< sType > &src_image, vimt3d_image_3d_of< dType > &dest_image, const vgl_point_3d< double > &p, const vgl_vector_3d< double > &u, const vgl_vector_3d< double > &v, const vgl_vector_3d< double > &w, int ni, int nj, int nk)
 Sample grid of points in one image and place in another, using tricubic interpolation.

Detailed Description

Resample a 3D image by a different factor in each dimension.

Author:
Gwenael Guillard

Definition in file vimt3d_resample_tricubic.h.


Function Documentation

template<class sType , class dType >
void vimt3d_resample_tricubic ( const vimt3d_image_3d_of< sType > &  src_image,
vimt3d_image_3d_of< dType > &  dest_image,
const vgl_point_3d< double > &  p,
const vgl_vector_3d< double > &  u,
const vgl_vector_3d< double > &  v,
const vgl_vector_3d< double > &  w,
int  n1,
int  n2,
int  n3,
dType  outval = 0 
) [inline]

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

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

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

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

Points outside image return zero or outval

Definition at line 26 of file vimt3d_resample_tricubic.h.

template<class sType , class dType >
void vimt3d_resample_tricubic_edge_extend ( const vimt3d_image_3d_of< sType > &  src_image,
vimt3d_image_3d_of< dType > &  dest_image,
const vgl_point_3d< double > &  p,
const vgl_vector_3d< double > &  u,
const vgl_vector_3d< double > &  v,
const vgl_vector_3d< double > &  w,
int  ni,
int  nj,
int  nk 
) [inline]

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

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

dest_image resized to (ni,nj,nk,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 70 of file vimt3d_resample_tricubic.h.