Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

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>

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_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,
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 31 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 51 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 14 of file vimt_find_troughs.h.


Generated on Thu Jan 10 14:43:58 2008 for contrib/mul/vimt by  doxygen 1.4.4