boost::gil::black_hat

Calculates the difference between closing of the input image and input image.

Synopsis

template<
    typename SrcView,
    typename DstView,
    typename Kernel>
void
black_hat(
    SrcView const& src_view,
    DstView const& dst_view,
    Kernel const& ker_mat);

Template Parameters

Name

Description

SrcView

type of source image, models gil::ImageViewConcept.

DstView

type of output image, models gil::MutableImageViewConcept.

Kernel

type of structuring element.

Parameters

Name

Description

src_view

‐ Source/input image view.

dst_view

‐ Destination view which will store the final result of black hat operation.

ker_mat

‐ Kernel matrix/structuring element containing 0's and 1's which will be used for applying the black hat operation.

Created with MrDocs