Functions
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 std::ptrdiff_t *offset, unsigned n)
 Return false if any im[offset[k]] is zero. More...
 
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. More...
 
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). More...
 
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). More...
 

Detailed Description

Perform binary erosion on images.

Author
Tim Cootes

Definition in file vil_binary_erode.h.

Function Documentation

◆ vil_binary_erode() [1/4]

bool vil_binary_erode ( const bool *  im,
const std::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.

◆ vil_binary_erode() [2/4]

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.

◆ vil_binary_erode() [3/4]

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 13 of file vil_binary_erode.cxx.

◆ vil_binary_erode() [4/4]

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 22 of file vil_binary_erode.cxx.