Compute filter for a distance transform. More...
#include <vil3d/algo/vil3d_structuring_element.h>
Go to the source code of this file.
Functions | |
void | vil3d_make_distance_filter_r1 (double width_i, double width_j, double width_k, vil3d_structuring_element &se, vcl_vector< double > &d) |
Create filter such that d[a] is distance from origin of se[a]. | |
void | vil3d_make_distance_filter (double width_i, double width_j, double width_k, int r, vil3d_structuring_element &se, vcl_vector< double > &d) |
Create filter such that d[a] is distance from origin of se[a]. |
Compute filter for a distance transform.
Definition in file vil3d_make_distance_filter.h.
void vil3d_make_distance_filter | ( | double | width_i, |
double | width_j, | ||
double | width_k, | ||
int | r, | ||
vil3d_structuring_element & | se, | ||
vcl_vector< double > & | d | ||
) |
Create filter such that d[a] is distance from origin of se[a].
Pixel widths are (width_i,width_j,width_k). Elements are selected so that only voxels visited before in a raster scan of the image are included. Distance transforms require two passes, a forward and reverse pass.
Consider only voxels within r voxels (1 norm) of origin.
Definition at line 110 of file vil3d_make_distance_filter.cxx.
void vil3d_make_distance_filter_r1 | ( | double | width_i, |
double | width_j, | ||
double | width_k, | ||
vil3d_structuring_element & | se, | ||
vcl_vector< double > & | d | ||
) |
Create filter such that d[a] is distance from origin of se[a].
Pixel widths are (width_i,width_j,width_k). Elements are selected so that only voxels visited before in a raster scan of the image are included. Distance transforms require two passes, a forward and reverse pass.
Consider only voxels within 1 voxel (1 norm) of origin. Indexes (27-1)/2 = 13 voxels.
Definition at line 18 of file vil3d_make_distance_filter.cxx.