Bicubic profile sampling functions for 2D images. More...
Go to the source code of this file.
Defines | |
| #define | vil_sample_grid_bicub_txx_ |
| #define | VIL_SAMPLE_GRID_BICUB_INSTANTIATE(imType, vecType) |
Functions | |
| bool | vil_grid_bicub_corner_in_image (double x0, double y0, const vil_image_view_base &image) |
| This function should not be the same in bicub and bilin. | |
| template<class imType , class vecType > | |
| void | vil_sample_grid_bicub (vecType *v, const vil_image_view< imType > &image, double x0, double y0, double dx1, double dy1, double dx2, double dy2, int n1, int n2) |
| Sample along profile, using safe bicubic interpolation. | |
Bicubic profile sampling functions for 2D images.
The vil bicub source files were derived from the corresponding vil bilin files, thus the vil bilin/bicub source files are very similar. If you modify something in this file, there is a corresponding bilin file that would likely also benefit from the same change.
Definition in file vil_sample_grid_bicub.txx.
| #define VIL_SAMPLE_GRID_BICUB_INSTANTIATE | ( | imType, | |
| vecType | |||
| ) |
template void vil_sample_grid_bicub(vecType* v, \ const vil_image_view<imType >& image, \ double x0, double y0, double dx1, double dy1, \ double dx2, double dy2, int n1, int n2)
Definition at line 105 of file vil_sample_grid_bicub.txx.
| #define vil_sample_grid_bicub_txx_ |
Definition at line 3 of file vil_sample_grid_bicub.txx.
| bool vil_grid_bicub_corner_in_image | ( | double | x0, |
| double | y0, | ||
| const vil_image_view_base & | image | ||
| ) | [inline] |
This function should not be the same in bicub and bilin.
Definition at line 18 of file vil_sample_grid_bicub.txx.
| void vil_sample_grid_bicub | ( | vecType * | v, |
| const vil_image_view< imType > & | image, | ||
| double | x0, | ||
| double | y0, | ||
| double | dx1, | ||
| double | dy1, | ||
| double | dx2, | ||
| double | dy2, | ||
| int | n1, | ||
| int | n2 | ||
| ) |
Sample along profile, using safe bicubic interpolation.
Sample grid from image, using bicubic interpolation.
Profile points are along the line between p0 and p1 (in image 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 Points outside image return zero.
Definition at line 33 of file vil_sample_grid_bicub.txx.
1.7.5.1