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

Find troughs in image. More...

#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.
template<class T >
vgl_point_2d< unsigned > vimt_find_min (const vil_image_view< T > &im, unsigned plane=0)
 Return image co-ordinates of minimum value in image.
template<class T >
vgl_point_2d< double > vimt_find_min (const vimt_image_2d_of< T > &image, unsigned plane=0)
 Return world co-ordinates of minimum value in image.

Detailed Description

Find troughs in image.

Author:
Tim Cootes

Definition in file vimt_find_troughs.h.


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 32 of file vimt_find_troughs.h.

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 >
vgl_point_2d<unsigned> vimt_find_min ( const vil_image_view< T > &  im,
unsigned  plane = 0 
) [inline]

Return image co-ordinates of minimum value in image.

(Or first one found if multiple equivalent minima)

Definition at line 99 of file vimt_find_troughs.h.

template<class T >
vgl_point_2d<double> vimt_find_min ( const vimt_image_2d_of< T > &  image,
unsigned  plane = 0 
) [inline]

Return world co-ordinates of minimum value in image.

(Or first one found if multiple equivalent minima)

Definition at line 123 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.