Defines | Functions
contrib/mul/vimt3d/vimt3d_reconstruct_from_grid.txx File Reference
#include "vimt3d_reconstruct_from_grid.h"
#include <vnl/vnl_vector.h>
#include <vgl/vgl_point_3d.h>
#include <vgl/vgl_vector_3d.h>

Go to the source code of this file.

Defines

#define vimt3d_reconstruct_from_grid_txx_
#define VIMT3D_RECONSTRUCT_FROM_GRID_INSTANTIATE(imType, vecType)

Functions

template<class T >
bool vimt3d_grid_point_in_image (const vgl_point_3d< double > &p, const vil3d_image_view< T > &image)
 True if p clearly inside the image.
template<class T >
bool vimt3d_grid_in_image_ic (const vgl_point_3d< double > &im_p, const vgl_vector_3d< double > &im_u, const vgl_vector_3d< double > &im_v, const vgl_vector_3d< double > &im_w, int nu, int nv, int nw, const vil3d_image_view< T > &image)
 True if grid of size nu * nv * nw (in steps of u,v,w) is entirely in the image.
template<class imType , class vecType >
void vimt3d_reconstruct_from_grid (vimt3d_image_3d_of< imType > &image, const vnl_vector< vecType > &vec, 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 nu, int nv, int nw, bool add_data)
 Reconstruct a smoothed image grid p+i.u+j.v+k.w from vector (in world coordinates).
template<class imType , class vecType >
void vimt3d_reconstruct_from_grid_ic (vil3d_image_view< imType > &image, const vnl_vector< vecType > &vec, const vgl_point_3d< double > &im_p, const vgl_vector_3d< double > &im_u, const vgl_vector_3d< double > &im_v, const vgl_vector_3d< double > &im_w, int nu, int nv, int nw, bool add_data)
 Reconstruct a smoothed image grid p+i.u+j.v+k.w from vector (in image coordinates).
template<class imType , class vecType >
void vimt3d_reconstruct_from_grid_ic_no_checks (vil3d_image_view< imType > &image, const vnl_vector< vecType > &vec, const vgl_point_3d< double > &p0, const vgl_vector_3d< double > &u, const vgl_vector_3d< double > &v, const vgl_vector_3d< double > &w, int nu, int nv, int nw, bool add_data)
 WITH NO CHECKS Reconstruct a smoothed image grid p+i.u+j.v+k.w from vector (in image coordinates).
template<class imType , class vecType >
void vimt3d_reconstruct_from_grid_ic_safe (vil3d_image_view< imType > &image, const vnl_vector< vecType > &vec, const vgl_point_3d< double > &p0, const vgl_vector_3d< double > &u, const vgl_vector_3d< double > &v, const vgl_vector_3d< double > &w, int nu, int nv, int nw, bool add_data)
 WITH SAFETY CHECKS Reconstruct a smoothed image grid p+i.u+j.v+k.w from vector (in image coordinates).

Detailed Description

Definition in file vimt3d_reconstruct_from_grid.txx.


Define Documentation

#define VIMT3D_RECONSTRUCT_FROM_GRID_INSTANTIATE (   imType,
  vecType 
)
Value:
template void vimt3d_reconstruct_from_grid(vimt3d_image_3d_of<imType >& image, \
                                           const vnl_vector<vecType >& vec, \
                                           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 nu, int nv, int nw, bool add_data); \
template void vimt3d_reconstruct_from_grid_ic(vil3d_image_view<imType >& image, \
                                              const vnl_vector<vecType >& vec, \
                                              const vgl_point_3d<double >& im_p, \
                                              const vgl_vector_3d<double >& im_u, \
                                              const vgl_vector_3d<double >& im_v, \
                                              const vgl_vector_3d<double >& im_w, \
                                              int nu, int nv, int nw, bool add_data); \
template void vimt3d_reconstruct_from_grid_ic_safe(vil3d_image_view<imType>& image, \
                                                   const vnl_vector<vecType>& vec, \
                                                   const vgl_point_3d<double>& p0, \
                                                   const vgl_vector_3d<double>& u, \
                                                   const vgl_vector_3d<double>& v, \
                                                   const vgl_vector_3d<double>& w, \
                                                   int nu, int nv, int nw, bool add_data); \
template void vimt3d_reconstruct_from_grid_ic_no_checks(vil3d_image_view<imType>& image, \
                                                        const vnl_vector<vecType>& vec, \
                                                        const vgl_point_3d<double>& p0, \
                                                        const vgl_vector_3d<double>& u, \
                                                        const vgl_vector_3d<double>& v, \
                                                        const vgl_vector_3d<double>& w, \
                                                        int nu, int nv, int nw, bool add_data)

Definition at line 222 of file vimt3d_reconstruct_from_grid.txx.

#define vimt3d_reconstruct_from_grid_txx_

Definition at line 3 of file vimt3d_reconstruct_from_grid.txx.


Function Documentation

template<class T >
bool vimt3d_grid_in_image_ic ( const vgl_point_3d< double > &  im_p,
const vgl_vector_3d< double > &  im_u,
const vgl_vector_3d< double > &  im_v,
const vgl_vector_3d< double > &  im_w,
int  nu,
int  nv,
int  nw,
const vil3d_image_view< T > &  image 
) [inline]

True if grid of size nu * nv * nw (in steps of u,v,w) is entirely in the image.

p defines centre of one size.

Definition at line 27 of file vimt3d_reconstruct_from_grid.txx.

template<class T >
bool vimt3d_grid_point_in_image ( const vgl_point_3d< double > &  p,
const vil3d_image_view< T > &  image 
) [inline]

True if p clearly inside the image.

Definition at line 13 of file vimt3d_reconstruct_from_grid.txx.

template<class imType , class vecType >
void vimt3d_reconstruct_from_grid ( vimt3d_image_3d_of< imType > &  image,
const vnl_vector< vecType > &  vec,
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  nu,
int  nv,
int  nw,
bool  add_data 
)

Reconstruct a smoothed image grid p+i.u+j.v+k.w from vector (in world coordinates).

Profile points are p+i.u+j.v+k.w, where i=[0..nu-1],j=[0..nv-1], k=[0..nw-1] Vector v is resized to nu*nv*nw*np elements, where np=image.n_planes(). v[0]..v[np-1] are the values from point p Reconstruction occurs along direction w first

Definition at line 55 of file vimt3d_reconstruct_from_grid.txx.

template<class imType , class vecType >
void vimt3d_reconstruct_from_grid_ic ( vil3d_image_view< imType > &  image,
const vnl_vector< vecType > &  vec,
const vgl_point_3d< double > &  im_p,
const vgl_vector_3d< double > &  im_u,
const vgl_vector_3d< double > &  im_v,
const vgl_vector_3d< double > &  im_w,
int  nu,
int  nv,
int  nw,
bool  add_data 
)

Reconstruct a smoothed image grid p+i.u+j.v+k.w from vector (in image coordinates).

Profile points are im_p+i.im_u+j.im_v+k.im_w, where i=[0..nu-1],j=[0..nv-1], k=[0..nw-1] Vector v is resized to nu*nv*nw*np elements, where np=image.n_planes(). v[0]..v[np-1] are the values from point p Reconstruction occurs along direction w first

Definition at line 82 of file vimt3d_reconstruct_from_grid.txx.

template<class imType , class vecType >
void vimt3d_reconstruct_from_grid_ic_no_checks ( vil3d_image_view< imType > &  image,
const vnl_vector< vecType > &  vec,
const vgl_point_3d< double > &  p0,
const vgl_vector_3d< double > &  u,
const vgl_vector_3d< double > &  v,
const vgl_vector_3d< double > &  w,
int  nu,
int  nv,
int  nw,
bool  add_data 
)

WITH NO CHECKS Reconstruct a smoothed image grid p+i.u+j.v+k.w from vector (in image coordinates).

Profile points are im_p+i.im_u+j.im_v+k.im_w, where i=[0..nu-1],j=[0..nv-1], k=[0..nw-1] Vector v is resized to nu*nv*nw*np elements, where np=image.n_planes(). v[0]..v[np-1] are the values from point p Reconstruction occurs along direction w first

Definition at line 104 of file vimt3d_reconstruct_from_grid.txx.

template<class imType , class vecType >
void vimt3d_reconstruct_from_grid_ic_safe ( vil3d_image_view< imType > &  image,
const vnl_vector< vecType > &  vec,
const vgl_point_3d< double > &  p0,
const vgl_vector_3d< double > &  u,
const vgl_vector_3d< double > &  v,
const vgl_vector_3d< double > &  w,
int  nu,
int  nv,
int  nw,
bool  add_data 
)

WITH SAFETY CHECKS Reconstruct a smoothed image grid p+i.u+j.v+k.w from vector (in image coordinates).

Profile points are im_p+i.im_u+j.im_v+k.im_w, where i=[0..nu-1],j=[0..nv-1], k=[0..nw-1] Vector v is resized to nu*nv*nw*np elements, where np=image.n_planes(). v[0]..v[np-1] are the values from point p Reconstruction occurs along direction w first

Definition at line 166 of file vimt3d_reconstruct_from_grid.txx.