boost::gil::erode

Applies morphological erosion on the input image view using given structuring element. It gives the minimum overlapped value to the pixel overlapping with the center element of structuring element.

Synopsis

template<
    typename SrcView,
    typename IntOpView,
    typename Kernel>
void
erode(
    SrcView const& src_view,
    IntOpView const& int_op_view,
    Kernel const& ker_mat,
    int iterations);

Template Parameters

Name

Description

SrcView

type of source image, models gil::ImageViewConcept.

IntOpView

type of output image, models gil::MutableImageViewConcept.

Kernel

type of structuring element.

Parameters

Name

Description

src_view

‐ Source/input image view.

int_op_view

‐ view for writing output and performing intermediate operations.

ker_mat

‐ Kernel matrix/structuring element containing 0's and 1's which will be used for applying erosion.

iterations

‐ Specifies the number of times erosion is to be applied on the input image view.

Created with MrDocs