enum cv::MorphShapes

Overview

shape of the structuring element Moreā€¦

#include <imgproc.hpp>

enum MorphShapes
{
    MORPH_RECT    = 0,
    MORPH_CROSS   = 1,
    MORPH_ELLIPSE = 2,
};

Detailed Documentation

shape of the structuring element

Enum Values

MORPH_RECT

a rectangular structuring element:

\[E_{ij}=1\]
MORPH_CROSS

a cross-shaped structuring element:

\[E_{ij} = \fork{1}{if i=\texttt{anchor.y} or j=\texttt{anchor.x}}{0}{otherwise}\]
MORPH_ELLIPSE

an elliptic structuring element, that is, a filled ellipse inscribed into the rectangle Rect(0, 0, esize.width, 0.esize.height)