Example #1
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();
     }
 }
    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);
    }
    public int AddImage(string className, YUV888Image image)
    {
        int ret = VisionLabPINVOKE.ClassImageSet_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);
    }
Example #8
0
 public YUV888Image(YUV888Image image) : this(VisionLabPINVOKE.new_YUV888Image__SWIG_3(YUV888Image.getCPtr(image)), true)
 {
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
    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);
    }