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

cvCreateStructuringElementEx() приватный Метод

private cvCreateStructuringElementEx ( int cols, int rows, int anchorX, int anchorY, CvEnum shape, IntPtr values ) : IntPtr
cols int
rows int
anchorX int
anchorY int
shape CvEnum
values IntPtr
Результат IntPtr
        public static extern IntPtr cvCreateStructuringElementEx(
          int cols,
          int rows,
          int anchorX,
          int anchorY,
          CvEnum.CV_ELEMENT_SHAPE shape,
          IntPtr values);

Usage Example

Пример #1
0
 /// <summary>
 /// Create a custome shape Structuring Element
 /// </summary>
 /// <param name="values">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.</param>
 /// <param name="anchorX">Relative horizontal offset of the anchor point</param>
 /// <param name="anchorY">Relative vertical offset of the anchor point</param>
 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());
 }
All Usage Examples Of Emgu.CV.CvInvoke::cvCreateStructuringElementEx
CvInvoke