public virtual void SnapShot(HSV888Image image)
 {
     VisionLabPINVOKE.Camera_HSV8_SnapShot__SWIG_1(swigCPtr, HSV888Image.getCPtr(image));
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 2
0
    public int AddImage(string className, HSV888Image image)
    {
        int ret = VisionLabPINVOKE.ClassImageSet_HSV8_AddImage(swigCPtr, className, HSV888Image.getCPtr(image));

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

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

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Esempio n. 5
0
 public HSV888Image(HSV888Image image) : this(VisionLabPINVOKE.new_HSV888Image__SWIG_3(HSV888Image.getCPtr(image)), true)
 {
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
    public double TrainImage(double learnRate, double momentum, HSV888Image image, int classNr)
    {
        double ret = VisionLabPINVOKE.BPN_ImageClassifier_HSV8_TrainImage(swigCPtr, learnRate, momentum, HSV888Image.getCPtr(image), classNr);

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

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

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }