typedef struct _IplConvKernel
{
int nCols;
int nRows;
int anchorX;
int anchorY;
int *values;
int nShiftR;
}
IplConvKernel;
/* creates structuring element used for morphological operations */
CVAPI(IplConvKernel*) cvCreateStructuringElementEx(
int cols, int rows, int anchor_x, int anchor_y,
int shape, int* values CV_DEFAULT(NULL) );
创建自定义核IplConvKernel
cols 列(注意此处先列再行)
rows 行(注意此处先列再行)
anchor_x 核的封闭矩形内参考点的横坐标
anchor_y 核的封闭矩形内参考点的纵坐标
shape 核的形状 矩形、十字交叉形、椭圆形、自定义