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

Perform binary erosion on images. More...

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

Go to the source code of this file.

Functions

bool vil_binary_erode (const bool *im, const vcl_ptrdiff_t *offset, unsigned n)
 Return false if any im[offset[k]] is zero.
template<class imAccessorT >
bool vil_binary_erode (const imAccessorT &image, unsigned plane, const vil_structuring_element &element, int i0, int j0)
 Return false if any image pixel under element centred at (i0,j0) is zero.
void vil_binary_erode (const vil_image_view< bool > &src_image, vil_image_view< bool > &dest_image, const vil_structuring_element &element)
 Erodes src_image to produce dest_image (assumed single plane).
void vil_binary_erode (const vil_image_view< bool > &src_image, vil_image_view< bool > &dest_image, const vil_structuring_element &element, const vil_border< vil_image_view< bool > > &border)
 Erodes src_image to produce dest_image (assumed single plane).

Detailed Description

Perform binary erosion on images.

Author:
Tim Cootes

Definition in file vil_binary_erode.h.


Function Documentation

bool vil_binary_erode ( const bool *  im,
const vcl_ptrdiff_t *  offset,
unsigned  n 
) [inline]

Return false if any im[offset[k]] is zero.

Definition at line 13 of file vil_binary_erode.h.

template<class imAccessorT >
bool vil_binary_erode ( const imAccessorT &  image,
unsigned  plane,
const vil_structuring_element element,
int  i0,
int  j0 
) [inline]

Return false if any image pixel under element centred at (i0,j0) is zero.

Checks boundary overlap

Definition at line 23 of file vil_binary_erode.h.

void vil_binary_erode ( const vil_image_view< bool > &  src_image,
vil_image_view< bool > &  dest_image,
const vil_structuring_element element 
)

Erodes src_image to produce dest_image (assumed single plane).

Definition at line 10 of file vil_binary_erode.cxx.

void vil_binary_erode ( const vil_image_view< bool > &  src_image,
vil_image_view< bool > &  dest_image,
const vil_structuring_element element,
const vil_border< vil_image_view< bool > > &  border 
)

Erodes src_image to produce dest_image (assumed single plane).

Definition at line 19 of file vil_binary_erode.cxx.