public vector_XYCoordEnumerator(vector_XYCoord collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
 public vector_XYCoord(vector_XYCoord other) : this(VisionLabPINVOKE.new_vector_XYCoord__SWIG_1(vector_XYCoord.getCPtr(other)), true)
 {
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void SetRange(int index, vector_XYCoord values)
 {
     VisionLabPINVOKE.vector_XYCoord_SetRange(swigCPtr, index, vector_XYCoord.getCPtr(values));
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #4
0
    public int ApproxPolygon(double minDistance, int maxVertices, vector_XYCoord tab)
    {
        int ret = VisionLabPINVOKE.ChainCode_ApproxPolygon(swigCPtr, minDistance, maxVertices, vector_XYCoord.getCPtr(tab));

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Beispiel #5
0
    public int ConvToXYCoordTab(vector_XYCoord tab)
    {
        int ret = VisionLabPINVOKE.ChainCode_ConvToXYCoordTab(swigCPtr, vector_XYCoord.getCPtr(tab));

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public vector_XYCoord GetRange(int index, int count)
    {
        IntPtr         cPtr = VisionLabPINVOKE.vector_XYCoord_GetRange(swigCPtr, index, count);
        vector_XYCoord ret  = (cPtr == IntPtr.Zero) ? null : new vector_XYCoord(cPtr, true);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public static vector_XYCoord Repeat(XYCoord value, int count)
    {
        IntPtr         cPtr = VisionLabPINVOKE.vector_XYCoord_Repeat(XYCoord.getCPtr(value), count);
        vector_XYCoord ret  = (cPtr == IntPtr.Zero) ? null : new vector_XYCoord(cPtr, true);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
 public static string XYCoordTabToStr(vector_XYCoord tab) {
   string ret = VisionLabPINVOKE.XYCoordTabToStr(vector_XYCoord.getCPtr(tab));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static void LineXYToCoords(LineXY xy, vector_XYCoord tab) {
   VisionLabPINVOKE.LineXYToCoords__SWIG_3(LineXY.getCPtr(xy), vector_XYCoord.getCPtr(tab));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void LineXYToCoords(XYCoord startOrg, XYCoord endOrg, vector_XYCoord tab) {
   VisionLabPINVOKE.LineXYToCoords__SWIG_2(XYCoord.getCPtr(startOrg), XYCoord.getCPtr(endOrg), vector_XYCoord.getCPtr(tab));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void DrawPolygon(FloatImage image, vector_XYCoord tab, float value, ZeroOrOriginal zorg) {
   VisionLabPINVOKE.DrawPolygon__SWIG_10(FloatImage.getCPtr(image), vector_XYCoord.getCPtr(tab), value, (int)zorg);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void DrawPolygon(YUV888Image image, vector_XYCoord tab, YUV888Pixel value, ZeroOrOriginal zorg) {
   VisionLabPINVOKE.DrawPolygon__SWIG_22(YUV888Image.getCPtr(image), vector_XYCoord.getCPtr(tab), YUV888Pixel.getCPtr(value), (int)zorg);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public int ApproxPolygon(double minDistance, int maxVertices, vector_XYCoord tab) {
   int ret = VisionLabPINVOKE.ChainCode_ApproxPolygon(swigCPtr, minDistance, maxVertices, vector_XYCoord.getCPtr(tab));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static void FindSubEdgesInScanLines(DoubleImage image, vector_XYCoord startLineTab, vector_XYCoord endLineTab, vector_Coord2D xTab) {
   VisionLabPINVOKE.FindSubEdgesInScanLines__SWIG_6(DoubleImage.getCPtr(image), vector_XYCoord.getCPtr(startLineTab), vector_XYCoord.getCPtr(endLineTab), vector_Coord2D.getCPtr(xTab));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static int XYCoordTabFromImage(YUV161616Image image, vector_XYCoord tab, YUV161616Pixel low, YUV161616Pixel high) {
   int ret = VisionLabPINVOKE.XYCoordTabFromImage__SWIG_25(YUV161616Image.getCPtr(image), vector_XYCoord.getCPtr(tab), YUV161616Pixel.getCPtr(low), YUV161616Pixel.getCPtr(high));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static int XYCoordTabFromImage(YUV888Image image, vector_XYCoord tab, YUV888Pixel pixel) {
   int ret = VisionLabPINVOKE.XYCoordTabFromImage__SWIG_22(YUV888Image.getCPtr(image), vector_XYCoord.getCPtr(tab), YUV888Pixel.getCPtr(pixel));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static int XYCoordTabFromImage(DoubleImage image, vector_XYCoord tab, double low, double high) {
   int ret = VisionLabPINVOKE.XYCoordTabFromImage__SWIG_13(DoubleImage.getCPtr(image), vector_XYCoord.getCPtr(tab), low, high);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static int XYCoordTabFromImage(FloatImage image, vector_XYCoord tab, float pixel) {
   int ret = VisionLabPINVOKE.XYCoordTabFromImage__SWIG_10(FloatImage.getCPtr(image), vector_XYCoord.getCPtr(tab), pixel);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static void DrawPolygon(ComplexDoubleImage image, vector_XYCoord tab, SWIGTYPE_p_std__complexT_double_t value) {
   VisionLabPINVOKE.DrawPolygon__SWIG_29(ComplexDoubleImage.getCPtr(image), vector_XYCoord.getCPtr(tab), SWIGTYPE_p_std__complexT_double_t.getCPtr(value));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void DrawPolygon(ComplexFloatImage image, vector_XYCoord tab, SWIGTYPE_p_std__complexT_float_t value, ZeroOrOriginal zorg) {
   VisionLabPINVOKE.DrawPolygon__SWIG_26(ComplexFloatImage.getCPtr(image), vector_XYCoord.getCPtr(tab), SWIGTYPE_p_std__complexT_float_t.getCPtr(value), (int)zorg);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void DrawPolygon(YUV161616Image image, vector_XYCoord tab, YUV161616Pixel value) {
   VisionLabPINVOKE.DrawPolygon__SWIG_25(YUV161616Image.getCPtr(image), vector_XYCoord.getCPtr(tab), YUV161616Pixel.getCPtr(value));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static vector_XYCoord StrToXYCoordTab(string str) {
   vector_XYCoord ret = new vector_XYCoord(VisionLabPINVOKE.StrToXYCoordTab(str), true);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static int ApproxPolygon(Int32Image image, Connected connected, double minDistance, int maxVertices, vector_XYCoord tab) {
   int ret = VisionLabPINVOKE.ApproxPolygon__SWIG_4(Int32Image.getCPtr(image), (int)connected, minDistance, maxVertices, vector_XYCoord.getCPtr(tab));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static int XYCoordTabFromImage(ComplexFloatImage image, vector_XYCoord tab, SWIGTYPE_p_std__complexT_float_t pixel) {
   int ret = VisionLabPINVOKE.XYCoordTabFromImage__SWIG_26(ComplexFloatImage.getCPtr(image), vector_XYCoord.getCPtr(tab), SWIGTYPE_p_std__complexT_float_t.getCPtr(pixel));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static LineXY LongestLineBetweenCoords(vector_XYCoord tab, ref int startIndex, ref int endIndex) {
   LineXY ret = new LineXY(VisionLabPINVOKE.LongestLineBetweenCoords__SWIG_0(vector_XYCoord.getCPtr(tab), ref startIndex, ref endIndex), true);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public int ConvToXYCoordTab(vector_XYCoord tab) {
   int ret = VisionLabPINVOKE.ChainCode_ConvToXYCoordTab(swigCPtr, vector_XYCoord.getCPtr(tab));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 internal static HandleRef getCPtr(vector_XYCoord obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
 public static void DrawPolygon(DoubleImage image, vector_XYCoord tab, double value) {
   VisionLabPINVOKE.DrawPolygon__SWIG_13(DoubleImage.getCPtr(image), vector_XYCoord.getCPtr(tab), value);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static vector_XYCoord LineXYToCoords(XYCoord startOrg, XYCoord endOrg) {
   vector_XYCoord ret = new vector_XYCoord(VisionLabPINVOKE.LineXYToCoords__SWIG_0(XYCoord.getCPtr(startOrg), XYCoord.getCPtr(endOrg)), true);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static vector_XYCoord LineXYToCoords(LineXY xy) {
   vector_XYCoord ret = new vector_XYCoord(VisionLabPINVOKE.LineXYToCoords__SWIG_1(LineXY.getCPtr(xy)), true);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static int XYCoordTabFromImage(ComplexDoubleImage image, vector_XYCoord tab, SWIGTYPE_p_std__complexT_double_t low, SWIGTYPE_p_std__complexT_double_t high) {
   int ret = VisionLabPINVOKE.XYCoordTabFromImage__SWIG_29(ComplexDoubleImage.getCPtr(image), vector_XYCoord.getCPtr(tab), SWIGTYPE_p_std__complexT_double_t.getCPtr(low), SWIGTYPE_p_std__complexT_double_t.getCPtr(high));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(vector_XYCoord obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }