boost::gil::closing

Performs dilation and then erosion on the input image view which is exactly opposite to the opening operation . Closing operation can be utilized for closing small holes inside foreground objects.

Synopsis

template<
    typename SrcView,
    typename IntOpView,
    typename Kernel>
void
closing(
    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 closing operation.

Created with MrDocs