Defines | Functions
core/vil/algo/vil_median.txx File Reference

Perform median filtering on images. More...

#include "vil_median.h"
#include <vcl_cassert.h>

Go to the source code of this file.

Defines

#define vil_median_txx_
#define VIL_MEDIAN_INSTANTIATE(T)

Functions

template<class T >
void vil_median (const vil_image_view< T > &src_image, vil_image_view< T > &dest_image, const vil_structuring_element &element)
 Computes median value of pixels under structuring element.

Detailed Description

Perform median filtering on images.

Author:
Tim Cootes

Definition in file vil_median.txx.


Define Documentation

#define VIL_MEDIAN_INSTANTIATE (   T)
Value:
template void vil_median(const vil_image_view< T >& src_image, \
                         vil_image_view< T >& dest_image, \
                         const vil_structuring_element& element)

Definition at line 73 of file vil_median.txx.

#define vil_median_txx_

Definition at line 2 of file vil_median.txx.


Function Documentation

template<class T >
void vil_median ( const vil_image_view< T > &  src_image,
vil_image_view< T > &  dest_image,
const vil_structuring_element element 
)

Computes median value of pixels under structuring element.

dest_image(i0,j0) is the median value of the pixels under the structuring element when it is centred on src_image(i0,j0)

Definition at line 15 of file vil_median.txx.