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);
    }
Exemple #2
0
    public int AddImage(string className, RGB161616Image image)
    {
        int ret = VisionLabPINVOKE.ClassImageSet_RGB16_AddImage(swigCPtr, className, RGB161616Image.getCPtr(image));

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    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);
    }
    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);
    }
    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);
    }
 public RGB161616Image(RGB161616Image image) : this(VisionLabPINVOKE.new_RGB161616Image__SWIG_3(RGB161616Image.getCPtr(image)), true)
 {
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
    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);
    }