//函数原型
CV_EXPORTS_W Mat getStructuringElement(int shape, Size ksize, Point anchor = Point(-1,-1));
1、函数功能
returns a structuring element of the specified size and shape for morphological operations.
返回用于形态学操作的指定大小和形状的结构元素。
2、函数参数
(1)shape:Element shape that could be one of #MorphShapes
结构元素形状可以是MorphShapes中的一个。
//! shape of the structuring element
enum MorphShapes {
MORPH_RECT = 0, //结构元素是矩形的
MORPH_CROSS = 1, //结构元素是十字形的
MORPH_ELLIPSE = 2 //结构元素是椭圆形的
};
(2)ksize:Size of the structuring element.
结构元素的大小。
(3)anchor:Anchor position within the element. The default value \f$(-1, -1)\f$ means that the anchor is at the center. Note that only the shape of a cross-shaped element depends on the anchor position. In other cases the anc