Find peaks in image. More...
Go to the source code of this file.
Functions | |
template<class T > | |
bool | vil3d_is_above_8nbrs (T v, const T *im, vcl_ptrdiff_t i_step, vcl_ptrdiff_t j_step) |
True if value v is strictly above 8 neighbours of *im in i and j. | |
template<class T > | |
bool | vil3d_is_peak26 (const T *im, vcl_ptrdiff_t i_step, vcl_ptrdiff_t j_step, vcl_ptrdiff_t k_step) |
True if *im is strictly above 26 neighbours in i,j,k. | |
template<class T > | |
void | vil3d_find_peaks_26 (vcl_vector< vgl_point_3d< int > > &peaks, const vil3d_image_view< T > &image, const T &min_thresh, bool clear_list=true) |
Return position of all points in image strictly above their 26 neighbours. |
Find peaks in image.
Definition in file vil3d_find_peaks.h.
void vil3d_find_peaks_26 | ( | vcl_vector< vgl_point_3d< int > > & | peaks, |
const vil3d_image_view< T > & | image, | ||
const T & | min_thresh, | ||
bool | clear_list = true |
||
) | [inline] |
Return position of all points in image strictly above their 26 neighbours.
Compute position of all local peaks (pi[k],pj[k]) above given threshold value.
clear_list | If true (the default) then empty lists before adding new examples |
Definition at line 45 of file vil3d_find_peaks.h.
bool vil3d_is_above_8nbrs | ( | T | v, |
const T * | im, | ||
vcl_ptrdiff_t | i_step, | ||
vcl_ptrdiff_t | j_step | ||
) | [inline] |
True if value v is strictly above 8 neighbours of *im in i and j.
Definition at line 15 of file vil3d_find_peaks.h.
bool vil3d_is_peak26 | ( | const T * | im, |
vcl_ptrdiff_t | i_step, | ||
vcl_ptrdiff_t | j_step, | ||
vcl_ptrdiff_t | k_step | ||
) | [inline] |
True if *im is strictly above 26 neighbours in i,j,k.
Definition at line 30 of file vil3d_find_peaks.h.