Create a structuring element of the specific type

C# | Visual Basic | Visual C++ |
public StructuringElementEx( int cols, int rows, int anchorX, int anchorY, CV_ELEMENT_SHAPE shape )
Public Sub New ( _ cols As Integer, _ rows As Integer, _ anchorX As Integer, _ anchorY As Integer, _ shape As CV_ELEMENT_SHAPE _ )
public: StructuringElementEx( int cols, int rows, int anchorX, int anchorY, CV_ELEMENT_SHAPE shape )

- cols (Int32)
- Number of columns in the structuring element
- rows (Int32)
- Number of rows in the structuring element
- anchorX (Int32)
- Relative horizontal offset of the anchor point
- anchorY (Int32)
- Relative vertical offset of the anchor point
- shape (CV_ELEMENT_SHAPE)
- Shape of the structuring element