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

Bilinear interpolation functions for 2D images. More...

#include <vimt3d/vimt3d_image_3d_of.h>
#include <vgl/vgl_point_3d.h>
#include <vil3d/vil3d_trilin_interp.h>
#include <vil3d/vil3d_image_view.h>

Go to the source code of this file.

Functions

template<class T >
double vimt3d_trilin_interp_safe (const vimt3d_image_3d_of< T > &image, const vgl_point_3d< double > &p, unsigned plane=0, T outval=0)
 Compute trilinear interpolation at p(x,y,z) in world coordinates, with bound checks.
template<class T >
double vimt3d_trilin_interp_raw (const vimt3d_image_3d_of< T > &image, const vgl_point_3d< double > &p, unsigned plane=0)
 Compute trilinear interpolation at p(x,y,z) in world coordinates, no bound checks.
template<class T >
double vimt3d_trilin_interp_safe_extend (const vimt3d_image_3d_of< T > &image, const vgl_point_3d< double > &p, unsigned plane=0)
 Compute trilinear interpolation at p(x,y,z) in world coordinates, using the nearest valid value if out of bounds.

Detailed Description

Bilinear interpolation functions for 2D images.

Author:
Tim Cootes

Definition in file vimt3d_trilin_interp.h.


Function Documentation

template<class T >
double vimt3d_trilin_interp_raw ( const vimt3d_image_3d_of< T > &  image,
const vgl_point_3d< double > &  p,
unsigned  plane = 0 
) [inline]

Compute trilinear interpolation at p(x,y,z) in world coordinates, no bound checks.

Interpolates given plane of image.image() at image.world2im(p).

Definition at line 35 of file vimt3d_trilin_interp.h.

template<class T >
double vimt3d_trilin_interp_safe ( const vimt3d_image_3d_of< T > &  image,
const vgl_point_3d< double > &  p,
unsigned  plane = 0,
outval = 0 
) [inline]

Compute trilinear interpolation at p(x,y,z) in world coordinates, with bound checks.

Interpolates given plane of image.image() at image.world2im(p). If p is outside interpolatable image region, returns zero or outval

Definition at line 18 of file vimt3d_trilin_interp.h.

template<class T >
double vimt3d_trilin_interp_safe_extend ( const vimt3d_image_3d_of< T > &  image,
const vgl_point_3d< double > &  p,
unsigned  plane = 0 
) [inline]

Compute trilinear interpolation at p(x,y,z) in world coordinates, using the nearest valid value if out of bounds.

Interpolates given plane of image.image() at image.world2im(p). If p is outside safe interpolatable image region, nearest pixel value is returned.

Definition at line 50 of file vimt3d_trilin_interp.h.