public HSV161616Image(HSV161616Image image) : this(VisionLabPINVOKE.new_HSV161616Image__SWIG_3(HSV161616Image.getCPtr(image)), true)
 {
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#2
0
    public double TrainImage(double learnRate, double momentum, HSV161616Image image, int classNr)
    {
        double ret = VisionLabPINVOKE.BPN_ImageClassifier_HSV16_TrainImage(swigCPtr, learnRate, momentum, HSV161616Image.getCPtr(image), classNr);

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

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

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
示例#5
0
    public int Classify(HSV161616Image image, ref double confidency)
    {
        int ret = VisionLabPINVOKE.BPN_ImageClassifier_HSV16_Classify(swigCPtr, HSV161616Image.getCPtr(image), ref confidency);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
示例#6
0
    public double ClassifyOutputTab(HSV161616Image image, vector_ClassOutput outputTab)
    {
        double ret = VisionLabPINVOKE.BPN_ImageClassifier_HSV16_ClassifyOutputTab(swigCPtr, HSV161616Image.getCPtr(image), vector_ClassOutput.getCPtr(outputTab));

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public HSV161616Image GetImage(int classId, int imageIndex)
    {
        HSV161616Image ret = new HSV161616Image(VisionLabPINVOKE.ClassImageSet_HSV16_GetImage__SWIG_1(swigCPtr, classId, imageIndex), false);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public int AddImage(string className, HSV161616Image image)
    {
        int ret = VisionLabPINVOKE.ClassImageSet_HSV16_AddImage(swigCPtr, className, HSV161616Image.getCPtr(image));

        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 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 void ConvertHSV161616To888Image(HSV161616Image src, HSV888Image dest) {
   VisionLabPINVOKE.ConvertHSV161616To888Image(HSV161616Image.getCPtr(src), HSV888Image.getCPtr(dest));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void Extract1Channel(HSV161616Image image, HSVColor plane, DoubleImage chan) {
   VisionLabPINVOKE.Extract1Channel__SWIG_78(HSV161616Image.getCPtr(image), (int)plane, DoubleImage.getCPtr(chan));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void Merge3Channels(DoubleImage chan1, DoubleImage chan2, DoubleImage chan3, HSV161616Image image) {
   VisionLabPINVOKE.Merge3Channels__SWIG_24(DoubleImage.getCPtr(chan1), DoubleImage.getCPtr(chan2), DoubleImage.getCPtr(chan3), HSV161616Image.getCPtr(image));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void Extract1Channel(HSV161616Image image, int chanNr, DoubleImage chan) {
   VisionLabPINVOKE.Extract1Channel__SWIG_30(HSV161616Image.getCPtr(image), chanNr, DoubleImage.getCPtr(chan));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 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 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 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();
 }
 public static void ROIR(HSV161616Image src, HSV161616Image dest, XYCoord middle, XYCoord endpoint1, XYCoord endpoint2, Orientation orien, PixelInterpolation pi) {
   VisionLabPINVOKE.ROIR__SWIG_43(HSV161616Image.getCPtr(src), HSV161616Image.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 ROI(HSV161616Image src, HSV161616Image dest, XYCoord topLeft, HeightWidth hw) {
   VisionLabPINVOKE.ROI__SWIG_10(HSV161616Image.getCPtr(src), HSV161616Image.getCPtr(dest), XYCoord.getCPtr(topLeft), HeightWidth.getCPtr(hw));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void Resample(HSV161616Image image, int rate) {
   VisionLabPINVOKE.Resample__SWIG_10(HSV161616Image.getCPtr(image), rate);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void Mirror(HSV161616Image image, MirrorOperation op) {
   VisionLabPINVOKE.Mirror__SWIG_10(HSV161616Image.getCPtr(image), (int)op);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void ConvertToFalseColor(DoubleImage src, HSV161616Image lut, HSV161616Image dest) {
   VisionLabPINVOKE.ConvertToFalseColor__SWIG_24(DoubleImage.getCPtr(src), HSV161616Image.getCPtr(lut), HSV161616Image.getCPtr(dest));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void SwapQuadrants(HSV161616Image src, HSV161616Image dest) {
   VisionLabPINVOKE.SwapQuadrants__SWIG_10(HSV161616Image.getCPtr(src), HSV161616Image.getCPtr(dest));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void Extract3Channels(HSV161616Image image, DoubleImage chan1, DoubleImage chan2, DoubleImage chan3) {
   VisionLabPINVOKE.Extract3Channels__SWIG_24(HSV161616Image.getCPtr(image), DoubleImage.getCPtr(chan1), DoubleImage.getCPtr(chan2), DoubleImage.getCPtr(chan3));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void TranslateCyclic(HSV161616Image src, HSV161616Image dest, XYCoord vector) {
   VisionLabPINVOKE.TranslateCyclic__SWIG_10(HSV161616Image.getCPtr(src), HSV161616Image.getCPtr(dest), XYCoord.getCPtr(vector));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void Threshold3Channels(HSV161616Image image, DoubleImage thresImage, int lowChan1, int highChan1, int lowChan2, int highChan2, int lowChan3, int highChan3) {
   VisionLabPINVOKE.Threshold3Channels__SWIG_24(HSV161616Image.getCPtr(image), DoubleImage.getCPtr(thresImage), lowChan1, highChan1, lowChan2, highChan2, lowChan3, highChan3);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 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 void NormaliseHue(HSV161616Image src, short hue, short minVal, short minSat, FloatImage dest) {
   VisionLabPINVOKE.NormaliseHue__SWIG_9(HSV161616Image.getCPtr(src), hue, minVal, minSat, FloatImage.getCPtr(dest));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 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 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 Zoom(HSV161616Image src, HSV161616Image dest, HeightWidth hw) {
   VisionLabPINVOKE.Zoom__SWIG_41(HSV161616Image.getCPtr(src), HSV161616Image.getCPtr(dest), HeightWidth.getCPtr(hw));
   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();
 }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(HSV161616Image obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
 public static void DeInterlace(HSV161616Image image) {
   VisionLabPINVOKE.DeInterlace__SWIG_10(HSV161616Image.getCPtr(image));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 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 static void Zoom(HSV161616Image src, HSV161616Image dest, HeightWidth hw, PixelInterpolation pi) {
   VisionLabPINVOKE.Zoom__SWIG_43(HSV161616Image.getCPtr(src), HSV161616Image.getCPtr(dest), HeightWidth.getCPtr(hw), (int)pi);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void TextOnImage(HSV161616Image image, int left, int top, string font, string text) {
   VisionLabPINVOKE.TextOnImage__SWIG_10(HSV161616Image.getCPtr(image), left, top, font, text);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void Zoom(HSV161616Image src, HSV161616Image dest, double factorX, double factorY, PixelInterpolation pi) {
   VisionLabPINVOKE.Zoom__SWIG_42(HSV161616Image.getCPtr(src), HSV161616Image.getCPtr(dest), factorX, factorY, (int)pi);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 internal static HandleRef getCPtr(HSV161616Image obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }