コード例 #1
0
    public double ClassifyOutputTab(RGB161616Image image, vector_ClassOutput outputTab)
    {
        double ret = VisionLabPINVOKE.BPN_ImageClassifier_RGB16_ClassifyOutputTab(swigCPtr, RGB161616Image.getCPtr(image), vector_ClassOutput.getCPtr(outputTab));

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #2
0
    public bool GetImage(string imageName, RGB161616Image image)
    {
        bool ret = VisionLabPINVOKE.VisLibCmdInt_GetImage__SWIG_8(swigCPtr, imageName, RGB161616Image.getCPtr(image));

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #3
0
    public double EvaluateImage(RGB161616Image image, int classExp, ref int classRes, ref double confidency, vector_double output)
    {
        double ret = VisionLabPINVOKE.BPN_ImageClassifier_RGB16_EvaluateImage(swigCPtr, RGB161616Image.getCPtr(image), classExp, ref classRes, ref confidency, vector_double.getCPtr(output));

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #4
0
    public int Classify(RGB161616Image image, ref double confidency)
    {
        int ret = VisionLabPINVOKE.BPN_ImageClassifier_RGB16_Classify(swigCPtr, RGB161616Image.getCPtr(image), ref confidency);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #5
0
    public RGB161616Image GetImage(string className, int imageIndex)
    {
        RGB161616Image ret = new RGB161616Image(VisionLabPINVOKE.ClassFeatureSet_RGB16_GetImage(swigCPtr, className, imageIndex), false);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #6
0
    public int AddImage(string className, RGB161616Image image)
    {
        int ret = VisionLabPINVOKE.ClassFeatureSet_RGB16_AddImage(swigCPtr, className, RGB161616Image.getCPtr(image));

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #7
0
 public static void Merge3Channels(DoubleImage chan1, DoubleImage chan2, DoubleImage chan3, RGB161616Image image) {
   VisionLabPINVOKE.Merge3Channels__SWIG_36(DoubleImage.getCPtr(chan1), DoubleImage.getCPtr(chan2), DoubleImage.getCPtr(chan3), RGB161616Image.getCPtr(image));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #8
0
 public static void Extract1Channel(RGB161616Image image, int chanNr, DoubleImage chan) {
   VisionLabPINVOKE.Extract1Channel__SWIG_42(RGB161616Image.getCPtr(image), chanNr, DoubleImage.getCPtr(chan));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #9
0
 public static void TextOnImage(RGB161616Image image, int left, int top, string font, string text) {
   VisionLabPINVOKE.TextOnImage__SWIG_8(RGB161616Image.getCPtr(image), left, top, font, text);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #10
0
 public static void ConvertCFAToRGB161616Image(Int8Image src, RGB161616Image dest, CFAType cfa) {
   VisionLabPINVOKE.ConvertCFAToRGB161616Image__SWIG_4(Int8Image.getCPtr(src), RGB161616Image.getCPtr(dest), (int)cfa);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #11
0
 public static void Zoom(RGB161616Image src, RGB161616Image dest, double factorX, double factorY, PixelInterpolation pi) {
   VisionLabPINVOKE.Zoom__SWIG_34(RGB161616Image.getCPtr(src), RGB161616Image.getCPtr(dest), factorX, factorY, (int)pi);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #12
0
 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();
 }
コード例 #13
0
 public RGB161616Image(RGB161616Image image) : this(VisionLabPINVOKE.new_RGB161616Image__SWIG_3(RGB161616Image.getCPtr(image)), true)
 {
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #14
0
 internal static HandleRef getCPtr(RGB161616Image obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
コード例 #15
0
 public static void Extract1Channel(RGB161616Image image, RGBColor plane, DoubleImage chan) {
   VisionLabPINVOKE.Extract1Channel__SWIG_74(RGB161616Image.getCPtr(image), (int)plane, DoubleImage.getCPtr(chan));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #16
0
 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();
 }
コード例 #17
0
 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();
 }
コード例 #18
0
 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;
 }
コード例 #19
0
 public static void DeInterlace(RGB161616Image image) {
   VisionLabPINVOKE.DeInterlace__SWIG_8(RGB161616Image.getCPtr(image));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #20
0
 public static void Resample(RGB161616Image image, int rate) {
   VisionLabPINVOKE.Resample__SWIG_8(RGB161616Image.getCPtr(image), rate);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #21
0
 public static void Zoom(RGB161616Image src, RGB161616Image dest, HeightWidth hw) {
   VisionLabPINVOKE.Zoom__SWIG_33(RGB161616Image.getCPtr(src), RGB161616Image.getCPtr(dest), HeightWidth.getCPtr(hw));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #22
0
 public static void ROI(RGB161616Image src, RGB161616Image dest, XYCoord topLeft, HeightWidth hw) {
   VisionLabPINVOKE.ROI__SWIG_8(RGB161616Image.getCPtr(src), RGB161616Image.getCPtr(dest), XYCoord.getCPtr(topLeft), HeightWidth.getCPtr(hw));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #23
0
 public static void Zoom(RGB161616Image src, RGB161616Image dest, HeightWidth hw, PixelInterpolation pi) {
   VisionLabPINVOKE.Zoom__SWIG_35(RGB161616Image.getCPtr(src), RGB161616Image.getCPtr(dest), HeightWidth.getCPtr(hw), (int)pi);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #24
0
 public static void ROIR(RGB161616Image src, RGB161616Image dest, XYCoord middle, XYCoord endpoint1, XYCoord endpoint2, Orientation orien, PixelInterpolation pi) {
   VisionLabPINVOKE.ROIR__SWIG_35(RGB161616Image.getCPtr(src), RGB161616Image.getCPtr(dest), XYCoord.getCPtr(middle), XYCoord.getCPtr(endpoint1), XYCoord.getCPtr(endpoint2), (int)orien, (int)pi);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #25
0
 public static void ConvertCFAToRGB161616Image(Int32Image src, RGB161616Image dest) {
   VisionLabPINVOKE.ConvertCFAToRGB161616Image__SWIG_9(Int32Image.getCPtr(src), RGB161616Image.getCPtr(dest));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #26
0
 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();
 }
コード例 #27
0
 public static void ConvertToFalseColor(DoubleImage src, RGB161616Image lut, RGB161616Image dest) {
   VisionLabPINVOKE.ConvertToFalseColor__SWIG_36(DoubleImage.getCPtr(src), RGB161616Image.getCPtr(lut), RGB161616Image.getCPtr(dest));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #28
0
 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;
 }
コード例 #29
0
 public static void Extract3Channels(RGB161616Image image, DoubleImage chan1, DoubleImage chan2, DoubleImage chan3) {
   VisionLabPINVOKE.Extract3Channels__SWIG_36(RGB161616Image.getCPtr(image), DoubleImage.getCPtr(chan1), DoubleImage.getCPtr(chan2), DoubleImage.getCPtr(chan3));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #30
0
 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();
 }
コード例 #31
0
 public static void Threshold3Channels(RGB161616Image image, DoubleImage thresImage, int lowChan1, int highChan1, int lowChan2, int highChan2, int lowChan3, int highChan3) {
   VisionLabPINVOKE.Threshold3Channels__SWIG_36(RGB161616Image.getCPtr(image), DoubleImage.getCPtr(thresImage), lowChan1, highChan1, lowChan2, highChan2, lowChan3, highChan3);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #32
0
 public static void SwapQuadrants(RGB161616Image src, RGB161616Image dest) {
   VisionLabPINVOKE.SwapQuadrants__SWIG_8(RGB161616Image.getCPtr(src), RGB161616Image.getCPtr(dest));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #33
0
 public static void ConvertRGB161616ToHSV161616Image(RGB161616Image src, HSV161616Image dest) {
   VisionLabPINVOKE.ConvertRGB161616ToHSV161616Image(RGB161616Image.getCPtr(src), HSV161616Image.getCPtr(dest));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #34
0
 public static void TranslateCyclic(RGB161616Image src, RGB161616Image dest, XYCoord vector) {
   VisionLabPINVOKE.TranslateCyclic__SWIG_8(RGB161616Image.getCPtr(src), RGB161616Image.getCPtr(dest), XYCoord.getCPtr(vector));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #35
0
 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();
 }
コード例 #36
0
 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();
 }
コード例 #37
0
 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;
 }
コード例 #38
0
 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;
 }
コード例 #39
0
    public double TrainImage(double learnRate, double momentum, RGB161616Image image, int classNr)
    {
        double ret = VisionLabPINVOKE.BPN_ImageClassifier_RGB16_TrainImage(swigCPtr, learnRate, momentum, RGB161616Image.getCPtr(image), classNr);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #40
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(RGB161616Image obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }