contrib/mul/vimt/algo/vimt_find_troughs.h File Reference


Detailed Description

Find troughs in image.

Author:
Tim Cootes

Definition in file vimt_find_troughs.h.

#include <vimt/vimt_image_2d_of.h>
#include <vgl/vgl_point_2d.h>

Go to the source code of this file.


Functions

template<class T>
bool vimt_is_trough_3x3 (const T *im, vcl_ptrdiff_t i_step, vcl_ptrdiff_t j_step)
 True if pixel at *im is strictly below its 8 neighbours.
template<class T>
void vimt_find_image_troughs_3x3 (vcl_vector< vgl_point_2d< unsigned > > &troughs, const vil_image_view< T > &image, unsigned plane=0, bool clear_list=true)
 Return image co-ordinates of all points in image strictly below their 8 neighbours.
template<class T>
void vimt_find_image_troughs_3x3 (vcl_vector< vgl_point_2d< unsigned > > &troughs, vcl_vector< T > &trough_value, const vil_image_view< T > &image, unsigned plane=0, bool clear_list=true)
 Return image co-ordinates of all points in image strictly below their 8 neighbours.
template<class T>
void vimt_find_world_troughs_3x3 (vcl_vector< vgl_point_2d< double > > &troughs, const vimt_image_2d_of< T > &image, unsigned plane=0, bool clear_list=true)
 Return world co-ordinates of all points in image strictly below their 8 neighbours.

Function Documentation

template<class T>
void vimt_find_image_troughs_3x3 ( vcl_vector< vgl_point_2d< unsigned > > &  troughs,
vcl_vector< T > &  trough_value,
const vil_image_view< T > &  image,
unsigned  plane = 0,
bool  clear_list = true 
) [inline]

Return image co-ordinates of all points in image strictly below their 8 neighbours.

Parameters:
clear_list,: If true (the default) then empty list before adding new examples

Definition at line 52 of file vimt_find_troughs.h.

template<class T>
void vimt_find_image_troughs_3x3 ( vcl_vector< vgl_point_2d< unsigned > > &  troughs,
const vil_image_view< T > &  image,
unsigned  plane = 0,
bool  clear_list = true 
) [inline]

Return image co-ordinates of all points in image strictly below their 8 neighbours.

Parameters:
clear_list,: If true (the default) then empty list before adding new examples

Definition at line 32 of file vimt_find_troughs.h.

template<class T>
void vimt_find_world_troughs_3x3 ( vcl_vector< vgl_point_2d< double > > &  troughs,
const vimt_image_2d_of< T > &  image,
unsigned  plane = 0,
bool  clear_list = true 
) [inline]

Return world co-ordinates of all points in image strictly below their 8 neighbours.

Parameters:
clear_list,: If true (the default) then empty list before adding new examples

Definition at line 77 of file vimt_find_troughs.h.

template<class T>
bool vimt_is_trough_3x3 ( const T *  im,
vcl_ptrdiff_t  i_step,
vcl_ptrdiff_t  j_step 
) [inline]

True if pixel at *im is strictly below its 8 neighbours.

The image pixel (first argument) should *not* be a border pixel!

Definition at line 15 of file vimt_find_troughs.h.


Generated on Mon Mar 8 05:15:32 2010 for contrib/mul/vimt by  doxygen 1.5.1