Emgu.CV.StructuringElementEx.StructuringElementEx C# (CSharp) Метод

StructuringElementEx() публичный Метод

Create a custome shape Structuring Element
public StructuringElementEx ( int values, int anchorX, int anchorY ) : System
values int The structuring element data, a plane array, representing row-by-row scanning of the element matrix. Non-zero values indicate points that belong to the element.
anchorX int Relative horizontal offset of the anchor point
anchorY int Relative vertical offset of the anchor point
Результат System
        public StructuringElementEx(int[,] values, int anchorX, int anchorY)
        {
            _values = values;
             _handle = GCHandle.Alloc(_values, GCHandleType.Pinned);
             _ptr = CvInvoke.cvCreateStructuringElementEx(
                   values.GetLength(1),
                   values.GetLength(0),
                   anchorX,
                   anchorY,
                   CvEnum.CV_ELEMENT_SHAPE.CV_SHAPE_CUSTOM,
                   _handle.AddrOfPinnedObject());
        }

Same methods

StructuringElementEx::StructuringElementEx ( int cols, int rows, int anchorX, int anchorY, CvEnum shape ) : System