Profile sampling functions for 2D images. More...
Go to the source code of this file.
Functions | |
template<class imType , class vecType > | |
void | vimt_sample_profile_bilin (vnl_vector< vecType > &v, const vimt_image_2d_of< imType > &image, const vgl_point_2d< double > &p, const vgl_vector_2d< double > &u, int n) |
Sample along profile, using bilinear interpolation. | |
template<class imType , class vecType > | |
void | vimt_sample_profile_bilin_edgena (vnl_vector< vecType > &v, const vimt_image_2d_of< imType > &image, const vgl_point_2d< double > &p, const vgl_vector_2d< double > &u, int n) |
Sample along profile, using bilinear interpolation. |
Profile sampling functions for 2D images.
Definition in file vimt_sample_profile_bilin.h.
void vimt_sample_profile_bilin | ( | vnl_vector< vecType > & | vec, |
const vimt_image_2d_of< imType > & | image, | ||
const vgl_point_2d< double > & | p0, | ||
const vgl_vector_2d< double > & | u, | ||
int | n | ||
) |
Sample along profile, using bilinear 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
Profile points are p+i*u, where i=[0..n-1]. Vector v is resized to n*np elements, where np=image.n_planes(). v[0]..v[np-1] are the values from point p
Definition at line 31 of file vimt_sample_profile_bilin.txx.
void vimt_sample_profile_bilin_edgena | ( | vnl_vector< vecType > & | vec, |
const vimt_image_2d_of< imType > & | image, | ||
const vgl_point_2d< double > & | p0, | ||
const vgl_vector_2d< double > & | u, | ||
int | n | ||
) |
Sample along profile, using bilinear 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. Values outside the images are set to NA
Profile points are p+i*u, where i=[0..n-1]. Vector v is resized to n*np elements, where np=image.n_planes(). v[0]..v[np-1] are the values from point p Values outside image are set to NA
Definition at line 109 of file vimt_sample_profile_bilin.txx.