Profile sampling functions for 3D images. More...
#include <vimt3d/vimt3d_image_3d_of.h>
#include <vil3d/vil3d_sample_profile_trilin.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.
Functions | |
template<class imType , class vecType > | |
void | vimt3d_sample_profile_trilin (vnl_vector< vecType > &vec, const vimt3d_image_3d_of< imType > &image, const vgl_point_3d< double > &p0, const vgl_vector_3d< double > &u, int n) |
Sample along profile, using trilinear interpolation. | |
template<class imType , class vecType > | |
void | vimt3d_sample_profile_trilin_extend (vnl_vector< vecType > &vec, const vimt3d_image_3d_of< imType > &image, const vgl_point_3d< double > &p0, const vgl_vector_3d< double > &u, int n) |
Sample along profile, using trilinear interpolation. | |
template<class imType , class vecType > | |
void | vimt3d_sample_profile_trilin_edgena (vnl_vector< vecType > &vec, const vimt3d_image_3d_of< imType > &image, const vgl_point_3d< double > &p0, const vgl_vector_3d< double > &u, int n) |
Sample along profile, using trilinear interpolation. |
Profile sampling functions for 3D images.
Definition in file vimt3d_sample_profile_trilin.h.
void vimt3d_sample_profile_trilin | ( | vnl_vector< vecType > & | vec, |
const vimt3d_image_3d_of< imType > & | image, | ||
const vgl_point_3d< double > & | p0, | ||
const vgl_vector_3d< double > & | u, | ||
int | n | ||
) |
Sample along profile, using trilinear interpolation.
Profile points are p+iu, where i=[0..n-1] (world co-ordinates). Vector v is resized to n*np elements, where np=image.n_planes(). v[0]..v[np-1] are the values from point p Samples outside the image are set to zero.
Definition at line 20 of file vimt3d_sample_profile_trilin.h.
void vimt3d_sample_profile_trilin_edgena | ( | vnl_vector< vecType > & | vec, |
const vimt3d_image_3d_of< imType > & | image, | ||
const vgl_point_3d< double > & | p0, | ||
const vgl_vector_3d< double > & | u, | ||
int | n | ||
) |
Sample along profile, using trilinear interpolation.
Profile points are p+iu, where i=[0..n-1] (world co-ordinates). Vector v is resized to n*np elements, where np=image.n_planes(). v[0]..v[np-1] are the values from point p Samples outside the image are set NA.
Definition at line 79 of file vimt3d_sample_profile_trilin.h.
void vimt3d_sample_profile_trilin_extend | ( | vnl_vector< vecType > & | vec, |
const vimt3d_image_3d_of< imType > & | image, | ||
const vgl_point_3d< double > & | p0, | ||
const vgl_vector_3d< double > & | u, | ||
int | n | ||
) |
Sample along profile, using trilinear interpolation.
Profile points are p+iu, where i=[0..n-1] (world co-ordinates). Vector v is resized to n*np elements, where np=image.n_planes(). v[0]..v[np-1] are the values from point p Samples outside the image are set to the nearest voxel.
Definition at line 50 of file vimt3d_sample_profile_trilin.h.