mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Add diamond structuring element
This commit is contained in:
@@ -235,8 +235,9 @@ enum MorphShapes {
|
||||
MORPH_RECT = 0, //!< a rectangular structuring element: \f[E_{ij}=1\f]
|
||||
MORPH_CROSS = 1, //!< a cross-shaped structuring element:
|
||||
//!< \f[E_{ij} = \begin{cases} 1 & \texttt{if } {i=\texttt{anchor.y } {or } {j=\texttt{anchor.x}}} \\0 & \texttt{otherwise} \end{cases}\f]
|
||||
MORPH_ELLIPSE = 2 //!< an elliptic structuring element, that is, a filled ellipse inscribed
|
||||
MORPH_ELLIPSE = 2, //!< an elliptic structuring element, that is, a filled ellipse inscribed
|
||||
//!< into the rectangle Rect(0, 0, esize.width, esize.height)
|
||||
MORPH_DIAMOND = 3 //!< a diamond structuring element defined by Manhattan distance
|
||||
};
|
||||
|
||||
//! @} imgproc_filter
|
||||
|
||||
@@ -389,6 +389,7 @@ enum MorphShapes_c
|
||||
CV_SHAPE_RECT =0,
|
||||
CV_SHAPE_CROSS =1,
|
||||
CV_SHAPE_ELLIPSE =2,
|
||||
CV_SHAPE_DIAMOND =3,
|
||||
CV_SHAPE_CUSTOM =100 //!< custom structuring element
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user