Profile sampling functions for 2D images. More...
#include "vimt_sample_profile_bilin.h"#include <vil/vil_sample_profile_bilin.h>#include <vil/vil_bilin_interp.h>#include <vnl/vnl_vector.h>#include <vgl/vgl_point_2d.h>#include <vgl/vgl_vector_2d.h>Go to the source code of this file.
Defines | |
| #define | vimt_sample_profile_bilin_txx_ |
| #define | VIMT_SAMPLE_PROFILE_BILIN_INSTANTIATE(imType, vecType) |
Functions | |
| bool | vimt_profile_in_image (const vgl_point_2d< double > &p0, const vgl_point_2d< double > &p1, const vil_image_view_base &image) |
| template<class imType , class vecType > | |
| 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. | |
| template<class imType , class vecType > | |
| 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 sampling functions for 2D images.
Definition in file vimt_sample_profile_bilin.txx.
| #define VIMT_SAMPLE_PROFILE_BILIN_INSTANTIATE | ( | imType, | |
| vecType | |||
| ) |
template 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); \ template 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)
Definition at line 181 of file vimt_sample_profile_bilin.txx.
| #define vimt_sample_profile_bilin_txx_ |
Definition at line 3 of file vimt_sample_profile_bilin.txx.
| bool vimt_profile_in_image | ( | const vgl_point_2d< double > & | p0, |
| const vgl_point_2d< double > & | p1, | ||
| const vil_image_view_base & | image | ||
| ) | [inline] |
Definition at line 16 of file vimt_sample_profile_bilin.txx.
| 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+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+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.
1.7.5.1