Functions
contrib/mul/vil3d/algo/vil3d_find_peaks.h File Reference

Find peaks in image. More...

#include <vil3d/vil3d_image_view.h>
#include <vgl/vgl_point_3d.h>
#include <vcl_vector.h>

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.

Detailed Description

Find peaks in image.

Author:
Tim Cootes

Definition in file vil3d_find_peaks.h.


Function Documentation

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 
) [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.

Parameters:
clear_listIf true (the default) then empty lists before adding new examples

Definition at line 45 of file vil3d_find_peaks.h.

template<class T >
bool vil3d_is_above_8nbrs ( 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.

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 
) [inline]

True if *im is strictly above 26 neighbours in i,j,k.

Definition at line 30 of file vil3d_find_peaks.h.