public Mask_HSV16(int height, int width, int orgX, int orgY, HSV161616Pixel v) : this(VisionLabPINVOKE.new_Mask_HSV16__SWIG_4(height, width, orgX, orgY, HSV161616Pixel.getCPtr(v)), true)
 {
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void SetMaskValue(int x, int y, HSV161616Pixel v)
 {
     VisionLabPINVOKE.Mask_HSV16_SetMaskValue(swigCPtr, x, y, HSV161616Pixel.getCPtr(v));
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void SetPixel(int x, int y, HSV161616Pixel value)
 {
     VisionLabPINVOKE.NumHSV161616Image_SetPixel(swigCPtr, x, y, HSV161616Pixel.getCPtr(value));
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
    public NumHSV161616Image Assign_Op(HSV161616Pixel pixel)
    {
        NumHSV161616Image ret = new NumHSV161616Image(VisionLabPINVOKE.NumHSV161616Image_Assign_Op__SWIG_1(swigCPtr, HSV161616Pixel.getCPtr(pixel)), false);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public bool Not(HSV161616Pixel p)
    {
        bool ret = VisionLabPINVOKE.HSV161616Pixel_Not(swigCPtr, HSV161616Pixel.getCPtr(p));

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public HSV161616Pixel GetMaskValue(int x, int y)
    {
        HSV161616Pixel ret = new HSV161616Pixel(VisionLabPINVOKE.Mask_HSV16_GetMaskValue(swigCPtr, x, y), true);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public XYCoord GetXYCoord(HSV161616Pixel ptr)
    {
        XYCoord ret = new XYCoord(VisionLabPINVOKE.NumHSV161616Image_GetXYCoord(swigCPtr, HSV161616Pixel.getCPtr(ptr)), true);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public HSV161616Pixel Divide_Op(HSV161616Pixel p)
    {
        HSV161616Pixel ret = new HSV161616Pixel(VisionLabPINVOKE.HSV161616Pixel_Divide_Op(swigCPtr, HSV161616Pixel.getCPtr(p)), true);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public HSV161616Pixel Multiply(HSV161616Pixel p)
    {
        HSV161616Pixel ret = new HSV161616Pixel(VisionLabPINVOKE.HSV161616Pixel_Multiply(swigCPtr, HSV161616Pixel.getCPtr(p)), false);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public HSV161616Pixel GetPixelPtr(int x, int y)
    {
        global::System.IntPtr cPtr = VisionLabPINVOKE.__NumHSV161616Image_GetPixelPtr__SWIG_0(swigCPtr, x, y);
        HSV161616Pixel        ret  = (cPtr == global::System.IntPtr.Zero) ? null : new HSV161616Pixel(cPtr, false);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public HSV161616Pixel GetLastPixelPtr()
    {
        IntPtr         cPtr = VisionLabPINVOKE.NumHSV161616Image_GetLastPixelPtr(swigCPtr);
        HSV161616Pixel ret  = (cPtr == IntPtr.Zero) ? null : new HSV161616Pixel(cPtr, false);

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

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
 public XYCoord GetXYCoord(HSV161616Pixel ptr) {
   XYCoord ret = new XYCoord(VisionLabPINVOKE.__NumHSV161616Image_GetXYCoord(swigCPtr, HSV161616Pixel.getCPtr(ptr)), true);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static int CountPixel(HSV161616Image image, HSV161616Pixel value) {
   int ret = VisionLabPINVOKE.CountPixel__SWIG_10(HSV161616Image.getCPtr(image), HSV161616Pixel.getCPtr(value));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static void BlockPattern(HSV161616Image image, XYCoord leftTop, int height, int width, HSV161616Pixel value, int repeatx, int repeaty) {
   VisionLabPINVOKE.BlockPattern__SWIG_21(HSV161616Image.getCPtr(image), XYCoord.getCPtr(leftTop), height, width, HSV161616Pixel.getCPtr(value), repeatx, repeaty);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 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 HSV161616Pixel StrToHSV161616Pixel(string str) {
   HSV161616Pixel ret = new HSV161616Pixel(VisionLabPINVOKE.StrToHSV161616Pixel(str), true);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static void SetBorders(HSV161616Image image, HSV161616Pixel value) {
   VisionLabPINVOKE.SetBorders__SWIG_21(HSV161616Image.getCPtr(image), HSV161616Pixel.getCPtr(value));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void Rotate(HSV161616Image src, HSV161616Image dest, XYCoord centre, double phi, HSV161616Pixel borderValue, PixelInterpolation pi) {
   VisionLabPINVOKE.Rotate__SWIG_21(HSV161616Image.getCPtr(src), HSV161616Image.getCPtr(dest), XYCoord.getCPtr(centre), phi, HSV161616Pixel.getCPtr(borderValue), (int)pi);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 internal static HandleRef getCPtr(HSV161616Pixel obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Esempio n. 21
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(HSV161616Pixel obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
 public HSV161616Pixel Divide(HSV161616Pixel p) {
   HSV161616Pixel ret = new HSV161616Pixel(VisionLabPINVOKE.HSV161616Pixel_Divide(swigCPtr, HSV161616Pixel.getCPtr(p)), false);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static int PixelPtrTabFromImage(HSV161616Image image, SWIGTYPE_p_std__vectorT_JL_VisionLib_V3__HSV161616Pixel_p_t tab, HSV161616Pixel low, HSV161616Pixel high) {
   int ret = VisionLabPINVOKE.PixelPtrTabFromImage__SWIG_21(HSV161616Image.getCPtr(image), SWIGTYPE_p_std__vectorT_JL_VisionLib_V3__HSV161616Pixel_p_t.getCPtr(tab), HSV161616Pixel.getCPtr(low), HSV161616Pixel.getCPtr(high));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static int XYCoordTabFromImage(HSV161616Image image, vector_XYCoord tab, HSV161616Pixel low, HSV161616Pixel high) {
   int ret = VisionLabPINVOKE.XYCoordTabFromImage__SWIG_21(HSV161616Image.getCPtr(image), vector_XYCoord.getCPtr(tab), HSV161616Pixel.getCPtr(low), HSV161616Pixel.getCPtr(high));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static XYCoord RotateFull(HSV161616Image src, HSV161616Image dest, double phi, HSV161616Pixel borderValue, PixelInterpolation pi) {
   XYCoord ret = new XYCoord(VisionLabPINVOKE.RotateFull__SWIG_21(HSV161616Image.getCPtr(src), HSV161616Image.getCPtr(dest), phi, HSV161616Pixel.getCPtr(borderValue), (int)pi), true);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static int ConvertHSV161616PixelToInt(HSV161616Pixel pixel) {
   int ret = VisionLabPINVOKE.ConvertHSV161616PixelToInt(HSV161616Pixel.getCPtr(pixel));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static void Warp(HSV161616Image src, HSV161616Image dest, TransformDirection dir, Coord2D leftTop, Coord2D rightTop, Coord2D leftBottom, Coord2D rightBottom, int height, int width, HSV161616Pixel border, PixelInterpolation pi) {
   VisionLabPINVOKE.Warp__SWIG_21(HSV161616Image.getCPtr(src), HSV161616Image.getCPtr(dest), (int)dir, Coord2D.getCPtr(leftTop), Coord2D.getCPtr(rightTop), Coord2D.getCPtr(leftBottom), Coord2D.getCPtr(rightBottom), height, width, HSV161616Pixel.getCPtr(border), (int)pi);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static HSV888Pixel ConvertHSV161616PixelTo888(HSV161616Pixel pixel) {
   HSV888Pixel ret = new HSV888Pixel(VisionLabPINVOKE.ConvertHSV161616PixelTo888(HSV161616Pixel.getCPtr(pixel)), true);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static void Multiply(__NumHSV161616Image image, HSV161616Pixel pixel) {
   VisionLabPINVOKE.Multiply__SWIG_17(__NumHSV161616Image.getCPtr(image), HSV161616Pixel.getCPtr(pixel));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public HSV161616Pixel Add_Op(HSV161616Pixel p) {
   HSV161616Pixel ret = new HSV161616Pixel(VisionLabPINVOKE.HSV161616Pixel_Add_Op(swigCPtr, HSV161616Pixel.getCPtr(p)), true);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static HSV161616Pixel ConvertIntToHSV161616Pixel(int i) {
   HSV161616Pixel ret = new HSV161616Pixel(VisionLabPINVOKE.ConvertIntToHSV161616Pixel(i), true);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static void DiskShape(HSV161616Image image, XYCoord centre, double r, HSV161616Pixel value, ZeroOrOriginal zorg) {
   VisionLabPINVOKE.DiskShape__SWIG_20(HSV161616Image.getCPtr(image), XYCoord.getCPtr(centre), r, HSV161616Pixel.getCPtr(value), (int)zorg);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static string HSV161616PixelToStr(HSV161616Pixel p) {
   string ret = VisionLabPINVOKE.HSV161616PixelToStr(HSV161616Pixel.getCPtr(p));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static void DrawLines(HSV161616Image image, vector_LineXY tab, HSV161616Pixel value) {
   VisionLabPINVOKE.DrawLines__SWIG_21(HSV161616Image.getCPtr(image), vector_LineXY.getCPtr(tab), HSV161616Pixel.getCPtr(value));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 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 DrawPolygon(HSV161616Image image, vector_XYCoord tab, HSV161616Pixel value) {
   VisionLabPINVOKE.DrawPolygon__SWIG_21(HSV161616Image.getCPtr(image), vector_XYCoord.getCPtr(tab), HSV161616Pixel.getCPtr(value));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void AddBorder(HSV161616Image src, HSV161616Image dest, int top, int left, int right, int bottom, HSV161616Pixel value) {
   VisionLabPINVOKE.AddBorder__SWIG_10(HSV161616Image.getCPtr(src), HSV161616Image.getCPtr(dest), top, left, right, bottom, HSV161616Pixel.getCPtr(value));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void FishEye(HSV161616Image src, HSV161616Image dest, int height, int width, double omega, double scale, HSV161616Pixel border, PixelInterpolation pi) {
   VisionLabPINVOKE.FishEye__SWIG_21(HSV161616Image.getCPtr(src), HSV161616Image.getCPtr(dest), height, width, omega, scale, HSV161616Pixel.getCPtr(border), (int)pi);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void CircleShape(HSV161616Image image, XYCoord centre, int r, HSV161616Pixel value) {
   VisionLabPINVOKE.CircleShape__SWIG_21(HSV161616Image.getCPtr(image), XYCoord.getCPtr(centre), r, HSV161616Pixel.getCPtr(value));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void LinePattern(HSV161616Image image, int startx, int starty, HSV161616Pixel value, int repeatx, int repeaty) {
   VisionLabPINVOKE.LinePattern__SWIG_21(HSV161616Image.getCPtr(image), startx, starty, HSV161616Pixel.getCPtr(value), repeatx, repeaty);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public __NumHSV161616Image Assign_Op(HSV161616Pixel pixel) {
   __NumHSV161616Image ret = new __NumHSV161616Image(VisionLabPINVOKE.__NumHSV161616Image_Assign_Op__SWIG_1(swigCPtr, HSV161616Pixel.getCPtr(pixel)), false);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static void OpticalCorrection(HSV161616Image src, HSV161616Image dest, double k1, double k2, double k3, HSV161616Pixel borderValue, PixelInterpolation pi) {
   VisionLabPINVOKE.OpticalCorrection__SWIG_21(HSV161616Image.getCPtr(src), HSV161616Image.getCPtr(dest), k1, k2, k3, HSV161616Pixel.getCPtr(borderValue), (int)pi);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public void SetPixel(int x, int y, HSV161616Pixel value) {
   VisionLabPINVOKE.__NumHSV161616Image_SetPixel(swigCPtr, x, y, HSV161616Pixel.getCPtr(value));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public bool Not(HSV161616Pixel p) {
   bool ret = VisionLabPINVOKE.HSV161616Pixel_Not(swigCPtr, HSV161616Pixel.getCPtr(p));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }