Macros | Functions
vil_greyscale_erode.hxx File Reference

Perform greyscale erosion on images. More...

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

Go to the source code of this file.

Macros

#define VIL_GREYSCALE_ERODE_INSTANTIATE(T)
 

Functions

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.hxx.

Macro Definition Documentation

◆ VIL_GREYSCALE_ERODE_INSTANTIATE

#define VIL_GREYSCALE_ERODE_INSTANTIATE (   T)
Value:
template void vil_greyscale_erode(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
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).

Definition at line 70 of file vil_greyscale_erode.hxx.

Function Documentation

◆ vil_greyscale_erode()

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