Functions
vil_greyscale_erode.h File Reference

Perform greyscale erosion on images. More...

#include <vil/algo/vil_structuring_element.h>
#include <vil/vil_image_view.h>

Go to the source code of this file.

Functions

template<class T >
vil_greyscale_erode (const T *im, const std::ptrdiff_t *offset, unsigned n)
 Return minimum value of im[offset[k]]. More...
 
template<class T >
vil_greyscale_erode (const vil_image_view< T > &image, unsigned plane, const vil_structuring_element &element, int i0, int j0)
 Return max of pixels under structuring element centred at (i0,j0). More...
 
template<class T >
void vil_greyscale_erode (const vil_image_view< T > &src_image, vil_image_view< T > &dest_image, const vil_structuring_element &element)
 Erodes src_image to produce dest_image (assumed single plane). More...
 

Detailed Description

Perform greyscale erosion on images.

Author
Tim Cootes

Definition in file vil_greyscale_erode.h.

Function Documentation

◆ vil_greyscale_erode() [1/3]

template<class T >
T vil_greyscale_erode ( const T *  im,
const std::ptrdiff_t *  offset,
unsigned  n 
)
inline

Return minimum value of im[offset[k]].

Definition at line 13 of file vil_greyscale_erode.h.

◆ vil_greyscale_erode() [2/3]

template<class T >
T vil_greyscale_erode ( const vil_image_view< T > &  image,
unsigned  plane,
const vil_structuring_element element,
int  i0,
int  j0 
)
inline

Return max of pixels under structuring element centred at (i0,j0).

Checks boundary overlap

Definition at line 26 of file vil_greyscale_erode.h.

◆ vil_greyscale_erode() [3/3]

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

Erodes src_image to produce dest_image (assumed single plane).

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

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

Definition at line 18 of file vil_greyscale_erode.hxx.