Beispiel #1
0
 public Mask_RGB16(int height, int width, int orgX, int orgY, RGB161616Pixel v) : this(VisionLabPINVOKE.new_Mask_RGB16__SWIG_4(height, width, orgX, orgY, RGB161616Pixel.getCPtr(v)), true)
 {
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #2
0
 public void SetMaskValue(int x, int y, RGB161616Pixel v)
 {
     VisionLabPINVOKE.Mask_RGB16_SetMaskValue(swigCPtr, x, y, RGB161616Pixel.getCPtr(v));
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void SetPixel(int x, int y, RGB161616Pixel value)
 {
     VisionLabPINVOKE.__NumRGB161616Image_SetPixel(swigCPtr, x, y, RGB161616Pixel.getCPtr(value));
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
    public XYCoord GetXYCoord(RGB161616Pixel ptr)
    {
        XYCoord ret = new XYCoord(VisionLabPINVOKE.__NumRGB161616Image_GetXYCoord(swigCPtr, RGB161616Pixel.getCPtr(ptr)), true);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public __NumRGB161616Image Assign_Op(RGB161616Pixel pixel)
    {
        __NumRGB161616Image ret = new __NumRGB161616Image(VisionLabPINVOKE.__NumRGB161616Image_Assign_Op__SWIG_1(swigCPtr, RGB161616Pixel.getCPtr(pixel)), false);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Beispiel #6
0
    public RGB161616Pixel GetMaskValue(int x, int y)
    {
        RGB161616Pixel ret = new RGB161616Pixel(VisionLabPINVOKE.Mask_RGB16_GetMaskValue(swigCPtr, x, y), true);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Beispiel #7
0
    public RGB161616Pixel Divide_Op(RGB161616Pixel p)
    {
        RGB161616Pixel ret = new RGB161616Pixel(VisionLabPINVOKE.RGB161616Pixel_Divide_Op(swigCPtr, RGB161616Pixel.getCPtr(p)), true);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Beispiel #8
0
    public bool Not(RGB161616Pixel p)
    {
        bool ret = VisionLabPINVOKE.RGB161616Pixel_Not(swigCPtr, RGB161616Pixel.getCPtr(p));

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Beispiel #9
0
    public RGB161616Pixel Add(RGB161616Pixel p)
    {
        RGB161616Pixel ret = new RGB161616Pixel(VisionLabPINVOKE.RGB161616Pixel_Add(swigCPtr, RGB161616Pixel.getCPtr(p)), false);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public RGB161616Pixel GetPixelPtr(XYCoord xy)
    {
        global::System.IntPtr cPtr = VisionLabPINVOKE.__NumRGB161616Image_GetPixelPtr__SWIG_1(swigCPtr, XYCoord.getCPtr(xy));
        RGB161616Pixel        ret  = (cPtr == global::System.IntPtr.Zero) ? null : new RGB161616Pixel(cPtr, false);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Beispiel #11
0
    public RGB161616Pixel GetPixelPtr(int x, int y)
    {
        IntPtr         cPtr = VisionLabPINVOKE.NumRGB161616Image_GetPixelPtr__SWIG_0(swigCPtr, x, y);
        RGB161616Pixel ret  = (cPtr == IntPtr.Zero) ? null : new RGB161616Pixel(cPtr, false);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
 public RGB161616Pixel Divide(RGB161616Pixel p) {
   RGB161616Pixel ret = new RGB161616Pixel(VisionLabPINVOKE.RGB161616Pixel_Divide(swigCPtr, RGB161616Pixel.getCPtr(p)), false);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static void CircleShape(RGB161616Image image, XYCoord centre, int r, RGB161616Pixel value) {
   VisionLabPINVOKE.CircleShape__SWIG_17(RGB161616Image.getCPtr(image), XYCoord.getCPtr(centre), r, RGB161616Pixel.getCPtr(value));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public RGB161616Pixel Add_Op(RGB161616Pixel p) {
   RGB161616Pixel ret = new RGB161616Pixel(VisionLabPINVOKE.RGB161616Pixel_Add_Op(swigCPtr, RGB161616Pixel.getCPtr(p)), true);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static RGB161616Pixel ConvertHSV161616ToRGB161616Pixel(HSV161616Pixel hsv) {
   RGB161616Pixel ret = new RGB161616Pixel(VisionLabPINVOKE.ConvertHSV161616ToRGB161616Pixel(HSV161616Pixel.getCPtr(hsv)), true);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static void AddBorder(RGB161616Image src, RGB161616Image dest, int top, int left, int right, int bottom, RGB161616Pixel value) {
   VisionLabPINVOKE.AddBorder__SWIG_8(RGB161616Image.getCPtr(src), RGB161616Image.getCPtr(dest), top, left, right, bottom, RGB161616Pixel.getCPtr(value));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static RGB161616Pixel ConvertIntToRGB161616Pixel(int i) {
   RGB161616Pixel ret = new RGB161616Pixel(VisionLabPINVOKE.ConvertIntToRGB161616Pixel(i), true);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static string RGB161616PixelToStr(RGB161616Pixel p) {
   string ret = VisionLabPINVOKE.RGB161616PixelToStr(RGB161616Pixel.getCPtr(p));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static void FishEye(RGB161616Image src, RGB161616Image dest, int height, int width, double omega, double scale, RGB161616Pixel border, PixelInterpolation pi) {
   VisionLabPINVOKE.FishEye__SWIG_17(RGB161616Image.getCPtr(src), RGB161616Image.getCPtr(dest), height, width, omega, scale, RGB161616Pixel.getCPtr(border), (int)pi);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void LinePattern(RGB161616Image image, int startx, int starty, RGB161616Pixel value, int repeatx, int repeaty) {
   VisionLabPINVOKE.LinePattern__SWIG_17(RGB161616Image.getCPtr(image), startx, starty, RGB161616Pixel.getCPtr(value), repeatx, repeaty);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void DrawLines(RGB161616Image image, vector_LineXY tab, RGB161616Pixel value) {
   VisionLabPINVOKE.DrawLines__SWIG_17(RGB161616Image.getCPtr(image), vector_LineXY.getCPtr(tab), RGB161616Pixel.getCPtr(value));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void DrawPolygon(RGB161616Image image, vector_XYCoord tab, RGB161616Pixel value) {
   VisionLabPINVOKE.DrawPolygon__SWIG_17(RGB161616Image.getCPtr(image), vector_XYCoord.getCPtr(tab), RGB161616Pixel.getCPtr(value));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void DiskShape(RGB161616Image image, XYCoord centre, double r, RGB161616Pixel value, ZeroOrOriginal zorg) {
   VisionLabPINVOKE.DiskShape__SWIG_16(RGB161616Image.getCPtr(image), XYCoord.getCPtr(centre), r, RGB161616Pixel.getCPtr(value), (int)zorg);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public __NumRGB161616Image Assign_Op(RGB161616Pixel pixel) {
   __NumRGB161616Image ret = new __NumRGB161616Image(VisionLabPINVOKE.__NumRGB161616Image_Assign_Op__SWIG_1(swigCPtr, RGB161616Pixel.getCPtr(pixel)), false);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public XYCoord GetXYCoord(RGB161616Pixel ptr) {
   XYCoord ret = new XYCoord(VisionLabPINVOKE.__NumRGB161616Image_GetXYCoord(swigCPtr, RGB161616Pixel.getCPtr(ptr)), true);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public void SetPixel(int x, int y, RGB161616Pixel value) {
   VisionLabPINVOKE.__NumRGB161616Image_SetPixel(swigCPtr, x, y, RGB161616Pixel.getCPtr(value));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void OpticalCorrection(RGB161616Image src, RGB161616Image dest, double k1, double k2, double k3, RGB161616Pixel borderValue, PixelInterpolation pi) {
   VisionLabPINVOKE.OpticalCorrection__SWIG_17(RGB161616Image.getCPtr(src), RGB161616Image.getCPtr(dest), k1, k2, k3, RGB161616Pixel.getCPtr(borderValue), (int)pi);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static int ConvertRGB161616PixelToInt(RGB161616Pixel rgb) {
   int ret = VisionLabPINVOKE.ConvertRGB161616PixelToInt(RGB161616Pixel.getCPtr(rgb));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public bool Not(RGB161616Pixel p) {
   bool ret = VisionLabPINVOKE.RGB161616Pixel_Not(swigCPtr, RGB161616Pixel.getCPtr(p));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static RGB888Pixel ConvertRGB161616PixelTo888(RGB161616Pixel pixel) {
   RGB888Pixel ret = new RGB888Pixel(VisionLabPINVOKE.ConvertRGB161616PixelTo888(RGB161616Pixel.getCPtr(pixel)), true);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static void Rotate(RGB161616Image src, RGB161616Image dest, XYCoord centre, double phi, RGB161616Pixel borderValue, PixelInterpolation pi) {
   VisionLabPINVOKE.Rotate__SWIG_17(RGB161616Image.getCPtr(src), RGB161616Image.getCPtr(dest), XYCoord.getCPtr(centre), phi, RGB161616Pixel.getCPtr(borderValue), (int)pi);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static RGB161616Pixel StrToRGB161616Pixel(string str) {
   RGB161616Pixel ret = new RGB161616Pixel(VisionLabPINVOKE.StrToRGB161616Pixel(str), true);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static XYCoord RotateFull(RGB161616Image src, RGB161616Image dest, double phi, RGB161616Pixel borderValue, PixelInterpolation pi) {
   XYCoord ret = new XYCoord(VisionLabPINVOKE.RotateFull__SWIG_17(RGB161616Image.getCPtr(src), RGB161616Image.getCPtr(dest), phi, RGB161616Pixel.getCPtr(borderValue), (int)pi), true);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static HSV161616Pixel ConvertRGB161616ToHSV161616Pixel(RGB161616Pixel rgb) {
   HSV161616Pixel ret = new HSV161616Pixel(VisionLabPINVOKE.ConvertRGB161616ToHSV161616Pixel(RGB161616Pixel.getCPtr(rgb)), true);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static void SetBorders(RGB161616Image image, RGB161616Pixel value) {
   VisionLabPINVOKE.SetBorders__SWIG_17(RGB161616Image.getCPtr(image), RGB161616Pixel.getCPtr(value));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void BlockPattern(RGB161616Image image, XYCoord leftTop, int height, int width, RGB161616Pixel value, int repeatx, int repeaty) {
   VisionLabPINVOKE.BlockPattern__SWIG_17(RGB161616Image.getCPtr(image), XYCoord.getCPtr(leftTop), height, width, RGB161616Pixel.getCPtr(value), repeatx, repeaty);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void Warp(RGB161616Image src, RGB161616Image dest, TransformDirection dir, Coord2D leftTop, Coord2D rightTop, Coord2D leftBottom, Coord2D rightBottom, int height, int width, RGB161616Pixel border, PixelInterpolation pi) {
   VisionLabPINVOKE.Warp__SWIG_17(RGB161616Image.getCPtr(src), RGB161616Image.getCPtr(dest), (int)dir, Coord2D.getCPtr(leftTop), Coord2D.getCPtr(rightTop), Coord2D.getCPtr(leftBottom), Coord2D.getCPtr(rightBottom), height, width, RGB161616Pixel.getCPtr(border), (int)pi);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static int CountPixel(RGB161616Image image, RGB161616Pixel value) {
   int ret = VisionLabPINVOKE.CountPixel__SWIG_8(RGB161616Image.getCPtr(image), RGB161616Pixel.getCPtr(value));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static int XYCoordTabFromImage(RGB161616Image image, vector_XYCoord tab, RGB161616Pixel low, RGB161616Pixel high) {
   int ret = VisionLabPINVOKE.XYCoordTabFromImage__SWIG_17(RGB161616Image.getCPtr(image), vector_XYCoord.getCPtr(tab), RGB161616Pixel.getCPtr(low), RGB161616Pixel.getCPtr(high));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Beispiel #40
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(RGB161616Pixel obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
 public static void Multiply(__NumRGB161616Image image, RGB161616Pixel pixel) {
   VisionLabPINVOKE.Multiply__SWIG_13(__NumRGB161616Image.getCPtr(image), RGB161616Pixel.getCPtr(pixel));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static int PixelPtrTabFromImage(RGB161616Image image, SWIGTYPE_p_std__vectorT_JL_VisionLib_V3__RGB161616Pixel_p_t tab, RGB161616Pixel low, RGB161616Pixel high) {
   int ret = VisionLabPINVOKE.PixelPtrTabFromImage__SWIG_17(RGB161616Image.getCPtr(image), SWIGTYPE_p_std__vectorT_JL_VisionLib_V3__RGB161616Pixel_p_t.getCPtr(tab), RGB161616Pixel.getCPtr(low), RGB161616Pixel.getCPtr(high));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Beispiel #43
0
 internal static HandleRef getCPtr(RGB161616Pixel obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }