public Int8Image(Int8Image image) : this(VisionLabPINVOKE.new_Int8Image__SWIG_3(Int8Image.getCPtr(image)), true)
 {
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public virtual void SnapShot(Int8Image image)
 {
     VisionLabPINVOKE.Camera_Int8_SnapShot__SWIG_1(swigCPtr, Int8Image.getCPtr(image));
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public virtual void Resize(HeightWidth hw, Int8Image properties)
 {
     VisionLabPINVOKE.Int8Image_Resize__SWIG_1(swigCPtr, HeightWidth.getCPtr(hw), Int8Image.getCPtr(properties));
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
    public override Int8Image PatternImage(int id)
    {
        Int8Image ret = new Int8Image(VisionLabPINVOKE.BlobMatcher_Int8_PatternImage__SWIG_0(swigCPtr, id), false);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
示例#5
0
    public virtual float AllMatches(Int8Image blob, float beginAngle, float endAngle, vector_PatternMatchResult tab)
    {
        float ret = VisionLabPINVOKE.PatternMatcher_Int8_AllMatches(swigCPtr, Int8Image.getCPtr(blob), beginAngle, endAngle, vector_PatternMatchResult.getCPtr(tab));

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
示例#6
0
    public virtual int FindPatterns(Int8Image image, float maxError, float minConfindence, float beginAngle, float endAngle, vector_PatternMatchResult labelTab, vector_vector_int patTab)
    {
        int ret = VisionLabPINVOKE.PatternMatcher_Int8_FindPatterns(swigCPtr, Int8Image.getCPtr(image), maxError, minConfindence, beginAngle, endAngle, vector_PatternMatchResult.getCPtr(labelTab), vector_vector_int.getCPtr(patTab));

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
示例#7
0
    public virtual int AddPattern(Int8Image image, string name)
    {
        int ret = VisionLabPINVOKE.PatternMatcher_Int8_AddPattern(swigCPtr, Int8Image.getCPtr(image), name);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
示例#8
0
    public virtual Int8Image PatternImage(string name)
    {
        Int8Image ret = new Int8Image(VisionLabPINVOKE.PatternMatcher_Int8_PatternImage__SWIG_1(swigCPtr, name), false);

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

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public Int8Image GetImage(string className, int imageIndex)
    {
        Int8Image ret = new Int8Image(VisionLabPINVOKE.ClassFeatureSet_Int8_GetImage(swigCPtr, className, imageIndex), false);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
示例#11
0
    public virtual int BestMatch(Int8Image blob, float beginAngle, float endAngle, ref float confidency, ref float error, ref float scale, ref float angle)
    {
        int ret = VisionLabPINVOKE.PatternMatcher_Int8_BestMatch(swigCPtr, Int8Image.getCPtr(blob), beginAngle, endAngle, ref confidency, ref error, ref scale, ref angle);

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

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public double EvaluateImage(Int8Image image, int classExp, ref int classRes, ref double confidency, vector_double output)
    {
        double ret = VisionLabPINVOKE.BPN_ImageClassifier_Int8_EvaluateImage(swigCPtr, Int8Image.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, Int8Image image)
    {
        bool ret = VisionLabPINVOKE.VisLibCmdInt_GetImage__SWIG_2(swigCPtr, imageName, Int8Image.getCPtr(image));

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

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

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
 public static int ThresholdIsoData(Int8Image image, Int8Image roi, ObjectBrightness arg2) {
   int ret = VisionLabPINVOKE.ThresholdIsoData__SWIG_5(Int8Image.getCPtr(image), Int8Image.getCPtr(roi), (int)arg2);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static void DiskShape(Int8Image image, XYCoord centre, double r, char value) {
   VisionLabPINVOKE.DiskShape__SWIG_5(Int8Image.getCPtr(image), XYCoord.getCPtr(centre), r, value);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void DeInterlace(Int8Image image) {
   VisionLabPINVOKE.DeInterlace__SWIG_2(Int8Image.getCPtr(image));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void CalcHistogram0(Int8Image image, int hisSize, SWIGTYPE_p_int his) {
   VisionLabPINVOKE.CalcHistogram0__SWIG_2(Int8Image.getCPtr(image), hisSize, SWIGTYPE_p_int.getCPtr(his));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void Remainder(Int8Image dest, Int8Image src) {
   VisionLabPINVOKE.Remainder__SWIG_2(Int8Image.getCPtr(dest), Int8Image.getCPtr(src));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public int Classify(Int8Image image, ref double confidency) {
   int ret = VisionLabPINVOKE.BPN_ImageClassifier_Int8_Classify(swigCPtr, Int8Image.getCPtr(image), ref confidency);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static void ThresholdHysteresis(Int8Image image, char low, char high, Connected connected) {
   VisionLabPINVOKE.ThresholdHysteresis__SWIG_2(Int8Image.getCPtr(image), low, high, (int)connected);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void ThresholdFast(Int8Image image, char low, char high) {
   VisionLabPINVOKE.ThresholdFast__SWIG_17(Int8Image.getCPtr(image), low, high);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void ThresholdFast(Int8Image image, char thres, ObjectBrightness arg2) {
   VisionLabPINVOKE.ThresholdFast__SWIG_14(Int8Image.getCPtr(image), thres, (int)arg2);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void SwapAxis(Int8Image src, Int8Image dest, ViewPoint viewPoint, int scale) {
   VisionLabPINVOKE.SwapAxis__SWIG_2(Int8Image.getCPtr(src), Int8Image.getCPtr(dest), (int)viewPoint, scale);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static int SumIntPixels(Int8Image image) {
   int ret = VisionLabPINVOKE.SumIntPixels__SWIG_2(Int8Image.getCPtr(image));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static void SetMultiToValueLUT(Int8Image image, SWIGTYPE_p_std__setT_char_t selectSet, char value) {
   VisionLabPINVOKE.SetMultiToValueLUT__SWIG_2(Int8Image.getCPtr(image), SWIGTYPE_p_std__setT_char_t.getCPtr(selectSet), value);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void ThresholdMulti(Int8Image image, SWIGTYPE_p_std__setT_char_t selectSet) {
   VisionLabPINVOKE.ThresholdMulti__SWIG_2(Int8Image.getCPtr(image), SWIGTYPE_p_std__setT_char_t.getCPtr(selectSet));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public double EvaluateImage(Int8Image image, int classExp, ref int classRes, ref double confidency, vector_double output) {
   double ret = VisionLabPINVOKE.BPN_ImageClassifier_Int8_EvaluateImage(swigCPtr, Int8Image.getCPtr(image), classExp, ref classRes, ref confidency, vector_double.getCPtr(output));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public double TrainImage(double learnRate, double momentum, Int8Image image, int classNr) {
   double ret = VisionLabPINVOKE.BPN_ImageClassifier_Int8_TrainImage(swigCPtr, learnRate, momentum, Int8Image.getCPtr(image), classNr);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static void InvertLUT(Int8Image image) {
   VisionLabPINVOKE.InvertLUT__SWIG_2(Int8Image.getCPtr(image));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public double ClassifyOutputTab(Int8Image image, vector_ClassOutput outputTab) {
   double ret = VisionLabPINVOKE.BPN_ImageClassifier_Int8_ClassifyOutputTab(swigCPtr, Int8Image.getCPtr(image), vector_ClassOutput.getCPtr(outputTab));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static void LUT(Int8Image image, char minPixel, vector_char tab) {
   VisionLabPINVOKE.LUT__SWIG_5(Int8Image.getCPtr(image), minPixel, vector_char.getCPtr(tab));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void GammaLUT(Int8Image image, double gamma) {
   VisionLabPINVOKE.GammaLUT__SWIG_2(Int8Image.getCPtr(image), gamma);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void HistogramEqualize(Int8Image image) {
   VisionLabPINVOKE.HistogramEqualize__SWIG_2(Int8Image.getCPtr(image));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void Extract1Channel(HSV161616Image image, HSVColor plane, Int8Image chan) {
   VisionLabPINVOKE.Extract1Channel__SWIG_54(HSV161616Image.getCPtr(image), (int)plane, Int8Image.getCPtr(chan));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void ContrastStretchLUT(Int8Image image, char low, char high) {
   VisionLabPINVOKE.ContrastStretchLUT__SWIG_2(Int8Image.getCPtr(image), low, high);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static vector_HoughLine FindFastBestLines(Int8Image src, HLParams p, char edgeMin, int nrLines, double minR, double minPhi, int minHits) {
   vector_HoughLine ret = new vector_HoughLine(VisionLabPINVOKE.FindFastBestLines__SWIG_2(Int8Image.getCPtr(src), HLParams.getCPtr(p), edgeMin, nrLines, minR, minPhi, minHits), true);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public Int8Image GetImage(int classId, int imageIndex) {
   Int8Image ret = new Int8Image(VisionLabPINVOKE.ClassImageSet_Int8_GetImage__SWIG_1(swigCPtr, classId, imageIndex), false);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static void AddBorder(Int8Image src, Int8Image dest, int top, int left, int right, int bottom, char value) {
   VisionLabPINVOKE.AddBorder__SWIG_2(Int8Image.getCPtr(src), Int8Image.getCPtr(dest), top, left, right, bottom, value);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static Histogram CalcHistogram(Int8Image image, Int8Image roi) {
   Histogram ret = new Histogram(VisionLabPINVOKE.CalcHistogram__SWIG_11(Int8Image.getCPtr(image), Int8Image.getCPtr(roi)), true);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Int8Image obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
 public static void BlockPattern(Int8Image image, XYCoord leftTop, int height, int width, char value, int repeatx, int repeaty) {
   VisionLabPINVOKE.BlockPattern__SWIG_5(Int8Image.getCPtr(image), XYCoord.getCPtr(leftTop), height, width, value, repeatx, repeaty);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void CircleShape(Int8Image image, XYCoord centre, int r, char value, ZeroOrOriginal zorg) {
   VisionLabPINVOKE.CircleShape__SWIG_4(Int8Image.getCPtr(image), XYCoord.getCPtr(centre), r, value, (int)zorg);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static int CountPixel(Int8Image image, char value) {
   int ret = VisionLabPINVOKE.CountPixel__SWIG_2(Int8Image.getCPtr(image), value);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public int AddImage(string className, Int8Image image) {
   int ret = VisionLabPINVOKE.ClassImageSet_Int8_AddImage(swigCPtr, className, Int8Image.getCPtr(image));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
示例#48
0
 internal static HandleRef getCPtr(Int8Image obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }