Example #1
0
 public YUV888Image(YUV888Image image) : this(VisionLabPINVOKE.new_YUV888Image__SWIG_3(YUV888Image.getCPtr(image)), true)
 {
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #2
0
 public virtual void SnapShot(YUV888Image image, int roiNr)
 {
     VisionLabPINVOKE.MFCam_SnapShot__SWIG_4(swigCPtr, YUV888Image.getCPtr(image), roiNr);
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public virtual void SnapShot(YUV888Image image)
 {
     VisionLabPINVOKE.Camera_YUV8_SnapShot__SWIG_1(swigCPtr, YUV888Image.getCPtr(image));
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #4
0
    public int AddImage(string className, YUV888Image image)
    {
        int ret = VisionLabPINVOKE.ClassFeatureSet_YUV8_AddImage(swigCPtr, className, YUV888Image.getCPtr(image));

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public double TrainImage(double learnRate, double momentum, YUV888Image image, int classNr)
    {
        double ret = VisionLabPINVOKE.BPN_ImageClassifier_YUV8_TrainImage(swigCPtr, learnRate, momentum, YUV888Image.getCPtr(image), classNr);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public double EvaluateImage(YUV888Image image, int classExp, ref int classRes, ref double confidency, vector_double output)
    {
        double ret = VisionLabPINVOKE.BPN_ImageClassifier_YUV8_EvaluateImage(swigCPtr, YUV888Image.getCPtr(image), classExp, ref classRes, ref confidency, vector_double.getCPtr(output));

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public double ClassifyOutputTab(YUV888Image image, vector_ClassOutput outputTab)
    {
        double ret = VisionLabPINVOKE.BPN_ImageClassifier_YUV8_ClassifyOutputTab(swigCPtr, YUV888Image.getCPtr(image), vector_ClassOutput.getCPtr(outputTab));

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public int Classify(YUV888Image image, ref double confidency)
    {
        int ret = VisionLabPINVOKE.BPN_ImageClassifier_YUV8_Classify(swigCPtr, YUV888Image.getCPtr(image), ref confidency);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #9
0
    public YUV888Image GetImage(string className, int imageIndex)
    {
        YUV888Image ret = new YUV888Image(VisionLabPINVOKE.ClassFeatureSet_YUV8_GetImage(swigCPtr, className, imageIndex), false);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public bool GetImage(string imageName, YUV888Image image)
    {
        bool ret = VisionLabPINVOKE.VisLibCmdInt_GetImage__SWIG_11(swigCPtr, imageName, YUV888Image.getCPtr(image));

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
 public static void Mirror(YUV888Image image, MirrorOperation op) {
   VisionLabPINVOKE.Mirror__SWIG_11(YUV888Image.getCPtr(image), (int)op);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void CircleShape(YUV888Image image, XYCoord centre, int r, YUV888Pixel value) {
   VisionLabPINVOKE.CircleShape__SWIG_23(YUV888Image.getCPtr(image), XYCoord.getCPtr(centre), r, YUV888Pixel.getCPtr(value));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void DeInterlace(YUV888Image image) {
   VisionLabPINVOKE.DeInterlace__SWIG_11(YUV888Image.getCPtr(image));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void Extract1Channel(YUV888Image image, YUVColor plane, DoubleImage chan) {
   VisionLabPINVOKE.Extract1Channel__SWIG_75(YUV888Image.getCPtr(image), (int)plane, DoubleImage.getCPtr(chan));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void FastYUVToHSV(YUV888Image src, HSV888Image dest) {
   VisionLabPINVOKE.FastYUVToHSV(YUV888Image.getCPtr(src), HSV888Image.getCPtr(dest));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void Extract3Channels(YUV888Image image, DoubleImage chan1, DoubleImage chan2, DoubleImage chan3) {
   VisionLabPINVOKE.Extract3Channels__SWIG_6(YUV888Image.getCPtr(image), DoubleImage.getCPtr(chan1), DoubleImage.getCPtr(chan2), DoubleImage.getCPtr(chan3));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void Threshold3Channels(YUV888Image image, DoubleImage thresImage, int lowChan1, int highChan1, int lowChan2, int highChan2, int lowChan3, int highChan3) {
   VisionLabPINVOKE.Threshold3Channels__SWIG_6(YUV888Image.getCPtr(image), DoubleImage.getCPtr(thresImage), lowChan1, highChan1, lowChan2, highChan2, lowChan3, highChan3);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void ConvertToFalseColor(DoubleImage src, YUV888Image lut, YUV888Image dest) {
   VisionLabPINVOKE.ConvertToFalseColor__SWIG_6(DoubleImage.getCPtr(src), YUV888Image.getCPtr(lut), YUV888Image.getCPtr(dest));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void Zoom(YUV888Image src, YUV888Image dest, HeightWidth hw, PixelInterpolation pi) {
   VisionLabPINVOKE.Zoom__SWIG_47(YUV888Image.getCPtr(src), YUV888Image.getCPtr(dest), HeightWidth.getCPtr(hw), (int)pi);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void Zoom(YUV888Image src, YUV888Image dest, HeightWidth hw) {
   VisionLabPINVOKE.Zoom__SWIG_45(YUV888Image.getCPtr(src), YUV888Image.getCPtr(dest), HeightWidth.getCPtr(hw));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void Warp(YUV888Image src, YUV888Image dest, TransformDirection dir, Coord2D leftTop, Coord2D rightTop, Coord2D leftBottom, Coord2D rightBottom, int height, int width, YUV888Pixel border, PixelInterpolation pi) {
   VisionLabPINVOKE.Warp__SWIG_23(YUV888Image.getCPtr(src), YUV888Image.getCPtr(dest), (int)dir, Coord2D.getCPtr(leftTop), Coord2D.getCPtr(rightTop), Coord2D.getCPtr(leftBottom), Coord2D.getCPtr(rightBottom), height, width, YUV888Pixel.getCPtr(border), (int)pi);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
Example #22
0
 internal static HandleRef getCPtr(YUV888Image obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
 public static int XYCoordTabFromImage(YUV888Image image, vector_XYCoord tab, YUV888Pixel low, YUV888Pixel high) {
   int ret = VisionLabPINVOKE.XYCoordTabFromImage__SWIG_23(YUV888Image.getCPtr(image), vector_XYCoord.getCPtr(tab), YUV888Pixel.getCPtr(low), YUV888Pixel.getCPtr(high));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static void OpticalCorrection(YUV888Image src, YUV888Image dest, double k1, double k2, double k3, YUV888Pixel borderValue, PixelInterpolation pi) {
   VisionLabPINVOKE.OpticalCorrection__SWIG_23(YUV888Image.getCPtr(src), YUV888Image.getCPtr(dest), k1, k2, k3, YUV888Pixel.getCPtr(borderValue), (int)pi);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void Zoom(YUV888Image src, YUV888Image dest, double factorX, double factorY, PixelInterpolation pi) {
   VisionLabPINVOKE.Zoom__SWIG_46(YUV888Image.getCPtr(src), YUV888Image.getCPtr(dest), factorX, factorY, (int)pi);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static int PixelPtrTabFromImage(YUV888Image image, SWIGTYPE_p_std__vectorT_JL_VisionLib_V3__YUV888Pixel_p_t tab, YUV888Pixel low, YUV888Pixel high) {
   int ret = VisionLabPINVOKE.PixelPtrTabFromImage__SWIG_23(YUV888Image.getCPtr(image), SWIGTYPE_p_std__vectorT_JL_VisionLib_V3__YUV888Pixel_p_t.getCPtr(tab), YUV888Pixel.getCPtr(low), YUV888Pixel.getCPtr(high));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static void TextOnImage(YUV888Image image, int left, int top, string font, string text) {
   VisionLabPINVOKE.TextOnImage__SWIG_11(YUV888Image.getCPtr(image), left, top, font, text);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void Resample(YUV888Image image, int rate) {
   VisionLabPINVOKE.Resample__SWIG_11(YUV888Image.getCPtr(image), rate);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void Extract1Channel(YUV888Image image, int chanNr, DoubleImage chan) {
   VisionLabPINVOKE.Extract1Channel__SWIG_12(YUV888Image.getCPtr(image), chanNr, DoubleImage.getCPtr(chan));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void ROI(YUV888Image src, YUV888Image dest, XYCoord topLeft, HeightWidth hw) {
   VisionLabPINVOKE.ROI__SWIG_11(YUV888Image.getCPtr(src), YUV888Image.getCPtr(dest), XYCoord.getCPtr(topLeft), HeightWidth.getCPtr(hw));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void Merge3Channels(DoubleImage chan1, DoubleImage chan2, DoubleImage chan3, YUV888Image image) {
   VisionLabPINVOKE.Merge3Channels__SWIG_6(DoubleImage.getCPtr(chan1), DoubleImage.getCPtr(chan2), DoubleImage.getCPtr(chan3), YUV888Image.getCPtr(image));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void ROIR(YUV888Image src, YUV888Image dest, XYCoord middle, XYCoord endpoint1, XYCoord endpoint2, Orientation orien, PixelInterpolation pi) {
   VisionLabPINVOKE.ROIR__SWIG_47(YUV888Image.getCPtr(src), YUV888Image.getCPtr(dest), XYCoord.getCPtr(middle), XYCoord.getCPtr(endpoint1), XYCoord.getCPtr(endpoint2), (int)orien, (int)pi);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void ConvertYUV161616To888Image(YUV161616Image src, YUV888Image dest) {
   VisionLabPINVOKE.ConvertYUV161616To888Image(YUV161616Image.getCPtr(src), YUV888Image.getCPtr(dest));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void Rotate(YUV888Image src, YUV888Image dest, XYCoord centre, double phi, YUV888Pixel borderValue, PixelInterpolation pi) {
   VisionLabPINVOKE.Rotate__SWIG_23(YUV888Image.getCPtr(src), YUV888Image.getCPtr(dest), XYCoord.getCPtr(centre), phi, YUV888Pixel.getCPtr(borderValue), (int)pi);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void AddBorder(YUV888Image src, YUV888Image dest, int top, int left, int right, int bottom, YUV888Pixel value) {
   VisionLabPINVOKE.AddBorder__SWIG_11(YUV888Image.getCPtr(src), YUV888Image.getCPtr(dest), top, left, right, bottom, YUV888Pixel.getCPtr(value));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static XYCoord RotateFull(YUV888Image src, YUV888Image dest, double phi, YUV888Pixel borderValue, PixelInterpolation pi) {
   XYCoord ret = new XYCoord(VisionLabPINVOKE.RotateFull__SWIG_23(YUV888Image.getCPtr(src), YUV888Image.getCPtr(dest), phi, YUV888Pixel.getCPtr(borderValue), (int)pi), true);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static void BlockPattern(YUV888Image image, XYCoord leftTop, int height, int width, YUV888Pixel value, int repeatx, int repeaty) {
   VisionLabPINVOKE.BlockPattern__SWIG_23(YUV888Image.getCPtr(image), XYCoord.getCPtr(leftTop), height, width, YUV888Pixel.getCPtr(value), repeatx, repeaty);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void SetBorders(YUV888Image image, YUV888Pixel value) {
   VisionLabPINVOKE.SetBorders__SWIG_23(YUV888Image.getCPtr(image), YUV888Pixel.getCPtr(value));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static int CountPixel(YUV888Image image, YUV888Pixel value) {
   int ret = VisionLabPINVOKE.CountPixel__SWIG_11(YUV888Image.getCPtr(image), YUV888Pixel.getCPtr(value));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static void SwapQuadrants(YUV888Image src, YUV888Image dest) {
   VisionLabPINVOKE.SwapQuadrants__SWIG_11(YUV888Image.getCPtr(src), YUV888Image.getCPtr(dest));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void TranslateCyclic(YUV888Image src, YUV888Image dest, XYCoord vector) {
   VisionLabPINVOKE.TranslateCyclic__SWIG_11(YUV888Image.getCPtr(src), YUV888Image.getCPtr(dest), XYCoord.getCPtr(vector));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
Example #42
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(YUV888Image obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }