Macros | Functions
vil_median.hxx File Reference

Perform median filtering on images. More...

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

Go to the source code of this file.

Macros

#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. More...
 

Detailed Description

Perform median filtering on images.

Author
Tim Cootes

Definition in file vil_median.hxx.

Macro Definition Documentation

◆ VIL_MEDIAN_INSTANTIATE

#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)
Structuring element for morphology represented as a list of non-zero pixels.
Concrete view of image data of type T held in memory.
Definition: vil_fwd.h:13
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.

Definition at line 76 of file vil_median.hxx.

Function Documentation

◆ vil_median()

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 18 of file vil_median.hxx.