Functions
core/vil/algo/vil_suppress_non_plateau.h File Reference

Suppress all non-plateau points in image. More...

#include <vil/vil_image_view.h>
#include <vil/algo/vil_find_plateaus.h>
#include <vil/vil_fill.h>
#include <vcl_cassert.h>

Go to the source code of this file.

Functions

template<class T >
void vil_suppress_non_plateau_3x3 (const vil_image_view< T > &src_im, vil_image_view< T > &dest_im, T threshold=0, T non_max_value=0)
 Suppress all non-plateau pixels in the image.

Detailed Description

Suppress all non-plateau points in image.

Author:
Tim Cootes, Kevin de Souza

Definition in file vil_suppress_non_plateau.h.


Function Documentation

template<class T >
void vil_suppress_non_plateau_3x3 ( const vil_image_view< T > &  src_im,
vil_image_view< T > &  dest_im,
threshold = 0,
non_max_value = 0 
) [inline]

Suppress all non-plateau pixels in the image.

If image(i,j) is greater than or equal to all neighbouring pixels, and is above the threshold, then it is retained. All other pixels are set to non_max_value.

non_max_value must be below the threshold (so the default value of zero is inappropriate if the image contains plateaus of interest with negative values)

See also:
vil_suppress_non_max_3x3()

Definition at line 26 of file vil_suppress_non_plateau.h.