boost::gil::opening

Performs erosion and then dilation on the input image view . This operation is utilized for removing noise from images.

Synopsis

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

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 the opening operation.

Created with MrDocs