Perform binary dilation 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_dilate (const bool *im, const vcl_ptrdiff_t *offset, unsigned n) |
Return true if any im[offset[k]] is non-zero. | |
template<class imAccessorT > | |
bool | vil_binary_dilate (const imAccessorT &image, unsigned plane, const vil_structuring_element &element, int i0, int j0) |
Return true if any image pixel under element centred at (i0,j0) is non-zero. | |
void | vil_binary_dilate (const vil_image_view< bool > &src_image, vil_image_view< bool > &dest_image, const vil_structuring_element &element) |
Dilates src_image to produce dest_image (assumed single plane). | |
void | vil_binary_dilate (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) |
Dilates src_image to produce dest_image (assumed single plane). |
Perform binary dilation on images.
Definition in file vil_binary_dilate.h.
bool vil_binary_dilate | ( | const bool * | im, |
const vcl_ptrdiff_t * | offset, | ||
unsigned | n | ||
) | [inline] |
Return true if any im[offset[k]] is non-zero.
Definition at line 13 of file vil_binary_dilate.h.
bool vil_binary_dilate | ( | const imAccessorT & | image, |
unsigned | plane, | ||
const vil_structuring_element & | element, | ||
int | i0, | ||
int | j0 | ||
) | [inline] |
Return true if any image pixel under element centred at (i0,j0) is non-zero.
Checks boundary overlap
Definition at line 23 of file vil_binary_dilate.h.
void vil_binary_dilate | ( | const vil_image_view< bool > & | src_image, |
vil_image_view< bool > & | dest_image, | ||
const vil_structuring_element & | element | ||
) |
Dilates src_image to produce dest_image (assumed single plane).
Definition at line 10 of file vil_binary_dilate.cxx.
void vil_binary_dilate | ( | 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 | ||
) |
Dilates src_image to produce dest_image (assumed single plane).
Definition at line 19 of file vil_binary_dilate.cxx.